Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • EugeneM
    Participant

    There is a one-hour difference between what the Announcer is showing and the correct count. https://imgur.com/a/QD0WUi1
    I know it’s based on the Time zone setting in WordPress, and I have checked that WordPress shows the correct time at the moment. Could the Announcer be ignoring the daylight saving adjustment, DST?
    https://prnt.sc/U_p3c2zr5WB9

    Hi Eugene,

    Thanks for reporting this.
    I’ll fix this in the next release of the plugin.

    For now, can you please make this change in the “plugin editor”?

    1) Deactivate Announcer – PRO plugin.
    2) Go to plugins –> Plugin editor
    3) Select announcer-pro/includes/display.php
    4) Delete lines 451-455 – Image
    5) Paste below lines at line no. 451. Image

    $wp_timezone_string = get_option('timezone_string');
    
    if (!$wp_timezone_string) {
        $wp_timezone_offset = get_option('gmt_offset');
        $wp_timezone_string = timezone_name_from_abbr('', $wp_timezone_offset * 3600, 0);
    }
    
    if (!$wp_timezone_string) {
        $wp_timezone_string = 'UTC';
    }
    
    $countdown_time = new DateTime($settings['cdt_countdown'], new DateTimeZone($wp_timezone_string));
    $countdown_timestamp = $countdown_time->getTimestamp();

    6) Save the file and activate the plugin.

    Let me know if it works.

    Thanks,
    Aakash

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Subscribe to our Newsletter

Get updates on the WordPress plugins, tips and tricks to enhance your WordPress experience. No spam. View newsletter

By using this website, you agree to our Terms