• Resolved Mikko Saari

    (@msaari)


    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_string option, everything works splendidly:

    $date->setTimezone(new DateTimeZone(get_option('timezone_string')));

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Travis

    (@tjtaylor)

    Hi Mikko,

    Please download version 1.2.5. This version converts the gmt_offset value to a timezone string and handles any possible errors.

    Thanks for the quick feedback!

    Thread Starter Mikko Saari

    (@msaari)

    Thanks, that was quick!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘1.2.4 fatal DateTimeZone error’ is closed to new replies.