• Resolved jodzeee

    (@jodzeee)


    I just upgraded and am playing around with it on my local dev site. I had the day of the week working, as per instructions, but I noticed the new version sets it back a day. But then I realized it’s just the heading that is wrong.

    For example, I want it on Sunday and even though it says, “Site Default (Sunday)”, the heading shows it’s starting on Saturday. But the date is right.

    So it’s showing today’s date as being Sunday, November 9.

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

Viewing 15 replies - 16 through 30 (of 55 total)
  • Oh. I didn’t see MortimerMcMire315’s switch. That may be better. ??

    Seth Yoder

    (@mortimermcmire315)

    Either of these should work really – changing the constants may be a bit more “dangerous” of a fix since it involves actually modifying the Carbon library.

    I’m amused that we both found a fix at almost the exact same time.

    Yeah. That is what I figured. Since I am only using it as a widget it was no big deal to changed the constants. But your fix appears more universal. I actually switched my fix to yours. ??

    And I just updated the plugin (updated yesterday) and they haven’t fixed this issue so I did your fix again. LOL!

    Thanks MortimerMcMire315, that worked for me.

    I had found a quick CSS hack that I was not happy with. FWIW, it was:

    .simcal-week-day-0 { display: none; }

    Which had the effect of killing the first label and shifting the remaining left one column (Sat went unlabeled). Your fix is much better. Now I just have to monitor for when the plugin is actually fixed and until then keep reapplying yours.

    Plugin Contributor Nick Young

    (@nickyoung87)

    Thanks for all the information. Will be looking into this so that you don’t have to hack it each time there is an update.

    Plugin Contributor Nick Young

    (@nickyoung87)

    Oh hey sorry for the delay here but 3.0.2 was pushed yesterday and it addressed this issue. Could you let me know if you still have issues after the update?

    Thanks!

    3.0.2 works out-of-the-box for me. Thanks Nick.

    Hi Nick,

    I’ve upgraded to the latest version and am still experiencing this problem.

    The default start date for my wordpress installation is Monday. For all of my calendars I’ve set the timezone to ‘Site Default (Australia, Sydney)’.

    If I set the ‘week starts on’ option to ‘Site Default (Monday)’ the week displays as starting on a Tuesday and the first day contains events from Sunday.

    If I set the ‘week starts on’ option to ‘Custom – Monday’ the week displays as starting on a Monday and the first day contains events from Sunday.

    Thanks,
    Emily

    Thread Starter jodzeee

    (@jodzeee)

    I updated to the latest version and the days are in the right spot now. Thank you!

    The day is still out for me. I’m using Version 3.0.3. I’ve got the week starting on a Monday, but the Calendar now show Novemeber 2015 starting on Monday (it started on Sunday) and events under Monday are actually Sunday events…

    Checked
    google-calendar-events/includes/functions/shared.php and can confirm that $date->next is set to $date->next(0)

    Same problem for me on 3.0.3 as per BenAttenborough. Start day set to Mon…first grid column displaying as Tue…happens on both an older calendar and new one built today…

    Plugin Contributor Nick Young

    (@nickyoung87)

    Ok there are 2 different issues that are being discussed here:

    1. The headings for the days are actually off by one day. (example: November 1st was showing on Saturday when it should be Sunday)

    2. The start of the week option is not registering correctly.

    For issue #1 it should be fixed in 3.0.2+. If you have updated make sure to clear the cache for your calendars also.

    For issue #2, what version of WordPress are you running?

    Nick – Im running WP 4.3.1

    For me too…
    I’ve replaced these items in Carbon.php, like jannybeanca and it’s word fine (I live in Switzerland)

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

    And it’OK for me now…

    I’m wating for the next update ??

    I’m running version 4.3.1

Viewing 15 replies - 16 through 30 (of 55 total)
  • The topic ‘Heading for day of week is off’ is closed to new replies.