Forums

Events Calendar 6.4.1 - Days of the week are incorrect (4 posts)

  1. clockworkbird
    Member
    Posted 1 year ago #

    I'm using Wordress 2.6.1 and Events Calendar 6.4.1.

    Currently my calendar dates are lagging by one day of the week.

    September 14th shows up as a Saturday, rather than a Sunday.

    I've figured out how to fix this on the front end of the site, but the admin for the events calendar still showcases the incorrect day of the week.

    I'm guessing this may be related to leap year.
    Suggestions?

  2. clockworkbird
    Member
    Posted 1 year ago #

    Update:
    I actually resolved this myself by modifying lines 62, 112, and 162 of ec_calendar.class.php.

    Previously, it had said :
    $weekday = ($weekday + 7 - $first_day) % 7;

    I simply changed it to say:
    $weekday = ($weekday + 8 - $first_day) % 7;

    It's a hack, but it seems to be working properly.

  3. maidanet
    Member
    Posted 1 year ago #

    Try upgrading to 6.5.1 to fix that.

  4. mirroreflex
    Member
    Posted 1 year ago #

    I have the same problem, with events-calendar latest verion... but changing code $weekday = ($weekday + 7 - $first_day) % 7; won't work...

Topic Closed

This topic has been closed to new replies.

About this Topic