...
Code Block | ||
---|---|---|
| ||
date.timezone="America/New_York" |
You can also define date_default_timezone_set setting before date.timezone function:
was
...
Code Block | ||
---|---|---|
| ||
echo date('Y-m-d H:i:s', time()); |
now
...
Code Block | ||
---|---|---|
| ||
date_default_timezone_set('UTC'); echo date('Y-m-d H:i:s', time()); |
...
Related articles
Content by Label | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Page properties | |||
---|---|---|---|
| |||
|