Date calculation fails on windows because strftime("%u") is unsupported.
For example getEventCalendarDateRange() fails to calculate $startDOW and returns false.
Something like the below would work to be cross-platform. But I honestly haven't done enough testing to tell if that's a good solution, especially on unix. Seems weird to give a numeric value to strftime() though :/
Date calculation fails on windows because
strftime("%u")
is unsupported.For example
getEventCalendarDateRange()
fails to calculate$startDOW
and returns false.Something like the below would work to be cross-platform. But I honestly haven't done enough testing to tell if that's a good solution, especially on unix. Seems weird to give a numeric value to
strftime()
though :/Seems to output the right date range on Windows however. (Well, with Monday as the first day of the week)