icpc-live / autoanalyst

ICPC-Live AutoAnalyst tooling (icat, katalyzer etc)
Other
12 stars 5 forks source link

iCAT should read the time zone from the browser #34

Closed sjoqvist closed 7 years ago

sjoqvist commented 7 years ago

www/feed.js currently contains the following code.

if (this.table == 'entries' && ! properties.hasOwnProperty('tz_offset')) {
    this.tz_offset = '-0600';
    // FIXME: THIS IS A BIG HACK TO FIX THE FACT THAT THE ENTRIES TABLE
    // STORES DATA IN LOCALTIME (WHICH IN 2017 IS -0600)
}

The time zone should be read from the browser instead of being hard-coded into the JS file.

Historically, we've had problems with the computers not being configured with the relevant time zone. But if this is expected to be a problem in the future, it should probably rather be solved with a setup script.

This used to be a part of ticket #14, but I'm creating a new ticket since it could probably be solved independently.