codalab / codabench

Codabench is a flexible, easy-to-use and reproducible benchmarking platform. Check our paper at Patterns Cell Press https://hubs.li/Q01fwRWB0
Apache License 2.0
76 stars 28 forks source link

Show submission time in local time zone #1633

Closed ihsaan-ullah closed 4 days ago

ihsaan-ullah commented 1 month ago

@ mention of reviewers

@Didayolo

A brief description of the purpose of the changes contained in this PR.

submissions panel and leaderboard now show submission time in local time zone

Submission panel shows time in local time zone

Screenshot 2024-10-13 at 3 59 46 PM

Leaderboard shows time in local time zone

Screenshot 2024-10-13 at 3 59 36 PM

Issues this PR resolves

Checklist

Didayolo commented 4 days ago

The date of submission shown is alwayw "2024-10-13 13:00".

On submission_time branch:`

Capture d’écran 2024-11-18 à 15 48 27

On develop branch:

Capture d’écran 2024-11-18 à 15 51 58

@ihsaan-ullah The problem comes from this function:

        self.pretty_date = function (date_string) {
            date_string = "2024-10-13T11:00:00Z"
            if (!!date_string) {
                return luxon.DateTime.fromISO(date_string).toFormat('yyyy-MM-dd HH:mm')
            } else {
                return ''
            }
        }