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?
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.
maidanet
Member
Posted 1 year ago #
Try upgrading to 6.5.1 to fix that.
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...