1.2.4 fatal DateTimeZone error
-
Version 1.2.4 of the plugin causes a fatal error on my site.
It’s this line:
$date->setTimezone(new DateTimeZone(get_option('gmt_offset')));The GMT offset option has the value of “2”, and that’s just not a valid DateTimeZone string.
If you instead use the
timezone_stringoption, everything works splendidly:$date->setTimezone(new DateTimeZone(get_option('timezone_string')));
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘1.2.4 fatal DateTimeZone error’ is closed to new replies.