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

24 hour clock? #54

Open
ghost opened this issue Apr 11, 2019 · 3 comments
Open

24 hour clock? #54

ghost opened this issue Apr 11, 2019 · 3 comments

Comments

@ghost
Copy link

ghost commented Apr 11, 2019

Is it possible to display a 24 hour clock instead of AM/PM?

@schmidtpalexander
Copy link

Hi! It's quite easy to change.
In ui-react/src/components/flightboard/clock.js change
{this.state.date.toLocaleTimeString()}
to {this.state.date.toLocaleTimeString('sv-sv')} for Swedish time. Change sv-sv to whichever locale you need. If you are using the single room version, change the Clock.js in that folder.

@olsonnn
Copy link

olsonnn commented Dec 8, 2019

Edge shows the correct time here 24h. but chrome or vivaldi not
The clock is fine but other times are still in AM/PM

@olsonnn
Copy link

olsonnn commented Dec 9, 2019

ok not sure why but fixed with this line
{weekday: 'short', hour: '2-digit', minute: '2-digit', 'hour12': false})

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