Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Countdown for registration opening #104

Open
matthijskooijman opened this issue May 22, 2020 · 1 comment
Open

Countdown for registration opening #104

matthijskooijman opened this issue May 22, 2020 · 1 comment

Comments

@matthijskooijman
Copy link
Member

To prevent confusion about when registration opens (especially wrt to timezones), it would be good if Arta would show how long until registration opens. I think minute-precision is fine (no need for an actual countdown), which should remove any ambiguity. The countdown should probably not replace the full timestamp, just add to it.

I think there should be scripts that can handle this completely automatically, by just passing a timestamp and letting them render it.

One related improvement could be to display times in the user's (or at least user's system's) timezone. It seems there are APIs to query that: https://stackoverflow.com/questions/6939685/get-client-time-zone-from-browser

@ReneB
Copy link
Member

ReneB commented May 22, 2020

moment.js is a fine library to do "relative time", as they call it. The code for that would be something like moment(new Date("2020-06-15T20:00:00.000+02:00")).fromNow();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants