• Resolved neutrino876

    (@neutrino876)


    Hi Guys,

    According to the changelog 3.0.2 this has been fixed but i am experiencing the same issue.

    The grid view shows the calendar as a day ahead. (I have tested this as a list view and this is fine.) Todays events are displayed for tommorow. I don’t know if this is related to the calendar starting the 1st November as a Monday when it should actually have started on a Sunday.

    I have triple checked settings of timezone are correct on the settings in WordPress and the plugin itself under the Advanced tab. I have also gone to the extent of entirely deleting the plugin and starting afresh without luck.

    Any help would be appreciated please.

    https://www.ads-software.com/plugins/google-calendar-events/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter neutrino876

    (@neutrino876)

    Credit to jennybeanca for this temporary fix:

    I found this file in the plugin:
    google-calendar-events/vendor/nesbot/carbon/src/Carbon/Carbon.php

    And found this content:

    /**
    * The day constants
    */
    const SUNDAY = 0;
    const MONDAY = 1;
    const TUESDAY = 2;
    const WEDNESDAY = 3;
    const THURSDAY = 4;
    const FRIDAY = 5;
    const SATURDAY = 6;

    and switched it to

    /**
    * The day constants
    */
    const SUNDAY = 1;
    const MONDAY = 2;
    const TUESDAY = 3;
    const WEDNESDAY = 4;
    const THURSDAY = 5;
    const FRIDAY = 6;
    const SATURDAY = 0;

    I hope this helps someone else with the same issue!

    Plugin Contributor Nick Young

    (@nickyoung87)

    We are looking into this to find a permanent fix.

    Thread Starter neutrino876

    (@neutrino876)

    Thanks Nick, i appreciate your time to reply.

    Would like to take this opportunity for the work and time you guys have put into this. Compared to v2 this has definitely been a good move forward. I can understand that the transition to the new version will take time to perfect, so thank you for all the hard work!

    Regards, Jack

    Thanks jennybeanca and neutrino876.

    Got me out of trouble!

    Plugin Contributor Nick Young

    (@nickyoung87)

    Hello everyone.

    We are working hard to correct this issue permanently. I think I have discovered what the problem was and we have a beta version available here for anyone willing to give it a go and provide some feedback:

    https://www.dropbox.com/s/ubl7gx45k744zfx/simple-calendar-3.0.6-beta1.zip?dl=1

    The version is marked as a beta so it will not interfere with any of your future automatic updates (including the official 3.0.6 release when we get it out).

    Any confirmation that it is/is not working is greatly appreciated!

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Calendar days still off by one day’ is closed to new replies.