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

Angie91 20 Nov, 2017
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!!
Angie91 24 Nov, 2017
Can someone help me, please?😟
GreyHead 24 Nov, 2017
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
Max_admin 24 Nov, 2017
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, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger