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

timeFormat messes up hour between timezones #192

Open
paddy01 opened this issue Aug 20, 2019 · 1 comment
Open

timeFormat messes up hour between timezones #192

paddy01 opened this issue Aug 20, 2019 · 1 comment

Comments

@paddy01
Copy link

paddy01 commented Aug 20, 2019

I'm using inline calendar and use select able time with 30min intervals.

If I have ' timeFormat: "HH:mm" ' it displays hour correctly but the selected hour becomes wrong. If I change it to ' timeFormat: "HH:mm ZZ" ' that part seems to be working but it becomes rather ugly in the calendar.

Might be that moment has to do with this but I find it strange that a change in timeFormat actually amend the select issue ?

If I do console.log dump from input value and rome.getDateString the hour has been modified from input to output without the "ZZ" addon ?

Just to be sure I actually separated moment and rome and import the latest release of both (using rome.standalone).

@Tampa
Copy link

Tampa commented Apr 14, 2023

You are correct, moment automatically converts to the local timezone of whoever uses rome in their particular browser session. Annoyingly either have to use moment separately to force timezones or convert things. Not sure why rome does not have a way to set timezones when it comes bundled with moment, which can do that easily.

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

3 participants
@Tampa @paddy01 and others