Possible issue with timezone
-
I noticed last night that my event list showing “todays events” did not show anything, even though there were three games left that night. When I looked into it further, I noticed that in the Event List (backend admin screen), it would show the games as “xx hours ago”, even though they were in the future.
I checked that my timezone set correctly in wordpress (which also shows up on the sportspress config screen).
Looking right now, it is 14:00 local time. The WordPress General Settings screen confirms this. But, when I look at the events list, it shows that a game scheduled for 19:00 today was 1 hour ago. That would mean your code thought the game was at 13:00. The difference is 6 hours, which happens to be the UTC offset for my timezone (UTC-6).
So, it appears I may have a missed configuration somewhere besides the wordpress general setting, or that your time comparison code is not taking timezone into account in some instances.
Thank you for your help!
corij
- The topic ‘Possible issue with timezone’ is closed to new replies.