ThemeBoy / SportsPress

An open source league statistics plugin for WordPress created by ThemeBoy.
Other
152 stars 98 forks source link

Live Countdown widget timezone bug #289

Closed danfisher85 closed 5 years ago

danfisher85 commented 6 years ago

I found the issue in Countdown widget if live countdown option (SportsPress > General > Scripts > Live Countdowns) enabled.

Details: My Local Time - UTC+2 (14:00) My Site Time - UTC+4 (16:00)

I set up Timezone UTC+4 in SportsPress ( http://take.ms/AIK3s ) and the same timezone is in General > Settings ( http://take.ms/v3DkX ). So the site time should be 16:00

After that I scheduled an Event for Aug 20, 2018 @ 17:00, added Countdown widget and got the wrong time ( http://take.ms/GWjJxd ) The event starts in an hour (site time 16:00, scheduled for 17:00) but it shows the time based on my local computer settings.

If live countdown is disabled everything works as expected ( http://take.ms/oNMUO )

Thanks in advance! Dan

savvasha commented 5 years ago

Was fixed in 2.6.9 version. https://github.com/ThemeBoy/SportsPress/commit/385d298df165250b936896f31b53ec3844bc89f4

farukhchik commented 5 years ago

Hello @savvasha, Is that about the PRO version of the plugin? Because I can see only the 2.6.14 version of the plugin: https://wordpress.org/plugins/sportspress/ thanks

savvasha commented 5 years ago

2.6.14 is the latest version of both core and Pro versions of SportsPress.