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

formatting offset with second #3

Open
fabon-f opened this issue Sep 9, 2024 · 0 comments
Open

formatting offset with second #3

fabon-f opened this issue Sep 9, 2024 · 0 comments

Comments

@fabon-f
Copy link
Owner

fabon-f commented Sep 9, 2024

const zdt = Temporal.PlainDateTime.from('1945-08-31T00:00:00').toZonedDateTime('America/Paramaribo')
formatWithoutLocale(zdt, "x xx xxx xxxx xxxxx")
// result: '-0340 -0340 -03:40 -034036 -03:40:36'

We should consider whether this behavior is correct: the offset -03:40:36 should be formatted as -03:40 (current behavior), or -03:41 (aligned to current Temporal spec)?

zdt.toString() // 1945-08-31T00:00:00-03:41[America/Paramaribo]
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

1 participant