Buy Now
Sign in

At "submit" the time is correct; when "modify"" the object, the time is 1 hour in the past

Angie91 , November 20 2017
A
Angie91
Hi!!
I have this problem probably for the "time change" between the summer and the winter. (DST??)

When i submit some forms on my BD, in the column "created" the time is correct.. but, when i modify that object,in the column "modified", the time is wrong: it's 1 hour in the past!

How this is possible?
Tyvm for your help!!
A
Angie91
Can someone help me, please?
GreyHead
Hi Angie,

I just checked and the code used for the two dates 'created' and 'modified' is identical so I'm not sure why they would be different unless something in your form is setting a value for one of them
        $data['modified'] = date('Y-m-d H:i:s', time());

        $data['created'] = date('Y-m-d H:i:s', time());

Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
admin
Hi,

Please set the Joomla timezone in the Joomla config to the same timezone of the server, this is a known issue in v5 but was fixed in v6

Best regards
Max
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!