This topic is locked
[SOLVED]

 Problem with Summer Time

4/14/2015 2:51:44 AM
PHPRunner General questions
S
Sergej author

Hi, all

i have a problem with one project for calculation of work time. I have a field with default value now() - showing only present clock value. It was working fine prior to changing to summer calculation of time - now it shows 2 hrs early. I have corrected this by putting date('G:i:s', strtotime('+2 hour')); instead of now() as default value - but would like to know is it possible to solve this automaticaly and avoid editing this cell twice a year. I spoke with my hosting provider, server time is ok there and even ask them to restart mysql service on server, thinking it would help, but it did not.

Any ideas, hints?

Thank you all in advance.

Best,

Sergej

Sergey Kornilov admin 4/15/2015

Server time might be okay but, apparently, correct timezone is not set in PHP settings (php.ini) or PHP is not configured to take into account summer time. Talk to your hosting company in this regard. Server time and PHP timezone are two different things.

S
Sergej author 4/16/2015



Server time might be okay but, apparently, correct timezone is not set in PHP settings (php.ini) or PHP is not configured to take into account summer time. Talk to your hosting company in this regard. Server time and PHP timezone are two different things.



Thank you.