I am using Drupal 7 Date module. I have enabled it and created a date field with Date, Time and All day option in the content type. I created a node of that content type, I set the date to 04/25/2015, checked All day option and saved the node. After saving the node I can see my date field value being saved as 04/24/2015 00:00:00 in the database. But I am expecting it to be saved as 04/24/2015 23:59:59. Can any one please help me how to achieve this? Thanks in advance
1 Answers
0
votes
Good morning. You should modify the submitted info after the submision of the form. Have a look at hook_node_presave(), a hook which lets you alter the node before it is inserted into database.
Hope it helps.