Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagephp
date.timezone="America/New_York"
 

You can also define date_default_timezone_set setting before date.timezone function:

was

...


Code Block
languagephp
echo  date('Y-m-d H:i:s', time());
 


now

...


Code Block
languagephp
date_default_timezone_set('UTC');
echo  date('Y-m-d H:i:s', time());

 

 


...

Content by Label
showSpace
showLabelsfalse
max5
spacesGKB
showSpacefalse
sortmodified
falsereversetrue
typepage
cqllabel in ("date","php","5_3","timezone") and type = "page" and space = "GKB"
labelsfix date timezone PHP 5_3

Page properties
hiddentrue
Related issues