Title: Possible issue with timezone
Last modified: August 31, 2016

---

# Possible issue with timezone

 *  [corij](https://wordpress.org/support/users/corij/)
 * (@corij)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/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
 * [https://wordpress.org/plugins/sportspress/](https://wordpress.org/plugins/sportspress/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Roch](https://wordpress.org/support/users/rochesterj/)
 * (@rochesterj)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/possible-issue-with-timezone/#post-7378998)
 * Hi there!
 * Would you mind pasting the link to your website here, so we can check it out?
 * Kind Regards,
    -Roch
 *  Thread Starter [corij](https://wordpress.org/support/users/corij/)
 * (@corij)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/possible-issue-with-timezone/#post-7379043)
 * Sure thing, sorry I didn’t think to do that.
    ovalhockey.com
 *  Thread Starter [corij](https://wordpress.org/support/users/corij/)
 * (@corij)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/possible-issue-with-timezone/#post-7379044)
 * I noticed something that may be helpful. I have an Event Blocks widget on the
   main page that shows upcoming games. It correctly shows there is one more game
   today – May 16th 10:30pm (although it is 10:50pm right now, so maybe it’s off
   another direction?). But if I go to the page where I use the Event List shortcode
   and show today’s games, it actually shows the three games for tomorrow (May 17th)
   even though today is still the 16th.
 *  [Roch](https://wordpress.org/support/users/rochesterj/)
 * (@rochesterj)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/possible-issue-with-timezone/#post-7379066)
 * Hi!
 * That’s really weird. To be honest I’m not sure what could be causing this. I’ll
   send this to our dev team so they can check
 * Kind Regards,
    -Roch

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Possible issue with timezone’ is closed to new replies.

 * ![](https://ps.w.org/sportspress/assets/icon-256x256.png?rev=1252005)
 * [SportsPress - Sports Club & League Manager](https://wordpress.org/plugins/sportspress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sportspress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sportspress/)
 * [Active Topics](https://wordpress.org/support/plugin/sportspress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sportspress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sportspress/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Roch](https://wordpress.org/support/users/rochesterj/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/possible-issue-with-timezone/#post-7379066)
 * Status: not resolved