Timeline for date() returns incorrect value if used from WordPress theme, but correct otherwise
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 24, 2015 at 10:57 | answer | added | igrynsh | timeline score: 2 | |
Apr 24, 2015 at 10:31 | comment | added | igrynsh | I found that if I add date_default_timezone_set('Europe/Riga') it works as expected. So the question arises from where Wordpress sets it differently. Changing the Timezone at Wordpress settings doesn't change my date() value, but it shows correct UTC and Local Time there. | |
Apr 24, 2015 at 9:19 | comment | added | igrynsh | By the way, the time in WP Adminstration Panel / General settings shows correctly UTC and Local time. | |
Apr 24, 2015 at 9:18 | history | asked | igrynsh | CC BY-SA 3.0 |