This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 2
Local Timezine DB Entry
Started 16 years ago by otooles | 2 posts |
-
Hi,
In my admin View Form entries area, the date created is always wrong.
for example, my server is on GMT -6hrs but I operate on GMT (0). So all times are always 6 hours behind. A form may have been entered 1 minute ago, but in the admin view entries area it says Date created: 6 hours and 1 minute ago.
Is it possible to tweak the code to fix this?
Thanks,
KevinPosted 16 years ago # -
Hi...
I think you should edit your php.ini in your server. You can add this line to set the time zone:
date.timezone = Europe/London
or maybe you want to use another option by replacing line 943 on post-functions.php from
$field_values .= "'$value',";
to
if ($key == "date_created") $field_values .= "date_add(now(),INTERVAL 2 HOUR),"; else $field_values .= "'$value',";
That code will add 2 hour from your server time, but this way not so perfect since it have problem in "entries" menu to display how long this data have been entered .
MachForm Support
Posted 16 years ago #
Reply
You must log in to post.