guweb
guweb copied to clipboard
Wrong time zone for best scores
Time is in future
On admin panel it is correct though
Not sure if this is how it's meant to be but when i use <% timeago.format(map.play_time + ' UTC-6') %> It show's the correct time ago for my best and recent scores but i'm sure there's a better fix somewhere
Not sure if this is how it's meant to be but when i use <% timeago.format(map.play_time + ' UTC-6') %> It show's the correct time ago for my best and recent scores but i'm sure there's a better fix somewhere
This is most likely gulag's fault, because it is the one that manages score timestamps on submission. It is unlikely to be fixable for everyone until cmyui adds a timezone configuration.
Not sure if this is how it's meant to be but when i use <% timeago.format(map.play_time + ' UTC-6') %> It show's the correct time ago for my best and recent scores but i'm sure there's a better fix somewhere
This is most likely gulag's fault, because it is the one that manages score timestamps on submission. It is unlikely to be fixable for everyone until cmyui adds a timezone configuration.
API should be providing timestamps in UTC; it's up to the frontend to format it for the browser's locale.
API should be providing timestamps in UTC; it's up to the frontend to format it for the browser's locale.
Yep, this should be the intended behavior.
This would have been one of the first things I wrote in gulag, so it may be using timezones inappropriately either when saving to the db or serving through the api. I would check now but I'm at work and don't have much spare time. xP perhaps someone will beat me to it