WordPress.org

Ready to get started?Download WordPress

Forums

Countdown Timer
[resolved] +100 added to event time with general time set to UTC+1 (4 posts)

  1. plovgren
    Member
    Posted 3 years ago #

    I live in Stockholm, Sweden.

    In the General Setting in WordPress I have set the time zone to UTC+1.

    When I set a one time event in Countdown Timer, it automatically adds "+100" at the end. The effect is that the time remaining to the event is wrong with an (extra) hour.

    How can I persuade the plugin that I don't want to add +100 at the end of the date for the event?

    At my site I want an event to start at 10.00, but I have to set the event to start at 9.00 to get the right time left to the event.

    Check out my site at:
    http://www.ordkultur.se/nordiclight

  2. fergbrain
    Member
    Plugin Author

    Posted 3 years ago #

    @plovgren:
    The reason that "+100" is added to the end of your event is because you are in the UTC+1 timezone (as set in your General Settings). So really, you actually want/need the +100 there. However, it doesn't take into account when DST begins and Sweden goes to UTC+2 (DST in Sweden starts on March 27) before your event takes place, which I think is where your issue is. Thus, technically speaking there is an extra hour that exists.

    For example:

    Assume today is March 1 at 5pm.
    If I have an event set for March 2 at 5pm, the actual difference in hours is 24 and the calculated difference in hours is 24.

    Assume today is March 26 at 5pm.
    If I have an event set for March 27 at 5pm, the actual difference in hours is 23 and the calculated difference in hours is 24.

    A potential solution would be to input the time and make sure you designate the UTC offset as +0200. It will modify the time to report it in terms of UTC+0100, however the countdown will be numerically correct.

  3. xdest
    Member
    Posted 2 years ago #

    When creating a countdown

    [fergcorp_cdt_single date="24-12-2011 12:00:00"]

    it will show the correct output of days, hours, etc ... and not add the additional offset.

    However, the tooltip (the title-Attribute of the attr Tag) still has it wrong and tells me that the countdown will end two hours later, as I set up the blog to be UTC+2.

  4. fergbrain
    Member
    Plugin Author

    Posted 2 years ago #

    @xdest: what does the tool tip say, exactly?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic