• Resolved Stefan Gebhardt

    (@stefangebhardt)


    Hi, I think you have a bug with summer time.
    I created a weekly shortcode beginning in winter (January 2022) and ending in 2030. It is created in Berlin Time Zone, so if I show the projected times they show the time zone +0100. In winter it is correct, but in summer we have +0200. So the text vanishes one hour to early.
    Do I change the shortcode to a beginning date in summer (May 2022) the projected times are shown with +0200.
    So there is the bug. For european countries with summer time the projected times have to be different while the summer time is active (when a repeating pattern is active). In my example it has to be +0100 in winter time and +0200 in summer time. Workaround is to change every half year the shortcodes – not a good idea ??
    Greetings,
    Stefan

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

    (@awelzel)

    As you already realized, the problem is, on what basis the start time is defined.

    The problem is, that the date functions of PHP don’t care if it looks illogical to you – if you define a date like January 5, 10:00 and add a couple of months to that than the result will still be 10:00 CET and not 10:00 CEST since the original date was defined for CET.

    I’ll see what I can do, but I doubt that there is an easy fix for it.

    Thread Starter Stefan Gebhardt

    (@stefangebhardt)

    Hi, thanks for the fast reply. I see your problem ??

    Would it not be a possibility to “overrule” on the current day?
    I think you can see, if the wordpress installation works actual on summer or winter time. If the projected time is +0100 (while started at winter time) and the server has +0200 it has to be “overruled” (and vice versa).

    Or second possibilty would be a switch beside the time zone choosed (use summer time). Then you can calculate correct “projected times”…

    But just ideas – of course I dont know your code and the structure of the plugin ??

    Good luck and thanks for your enthusiasm and the plugin *thumbsup*

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Summer Time Problem with weekly content’ is closed to new replies.