formkit / tempo

📆 Parse, format, manipulate, and internationalize dates and times in JavaScript and TypeScript.
https://tempo.formkit.com
MIT License
2.37k stars 33 forks source link

Are there any plans to support timezone formats like +-HH:mm in the parse function? #38

Closed Toru-Takagi closed 8 months ago

Toru-Takagi commented 8 months ago

I've read the documentation, but I apologize if my knowledge falls short. (validOffset)

I've noticed that the format 1982-05-17T07:44:00+0900 works as expected, but when using 1982-05-17T07:44:00+09:00, it leads to a format error stating Error: Invalid offset: +09:0 .

Moment.js documentation

Moment.js test code

date-fns