formkit / tempo

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

Fixed the issue where the 'H' disappears when set to 0. #47

Closed Toru-Takagi closed 6 months ago

Toru-Takagi commented 6 months ago

Fixed: https://github.com/formkit/tempo/issues/41#issuecomment-2005569614

common.ts#createPartMap#formatToParts(line 242) return { 'type': 'hour', 'value': '0' } common.ts#fill#value(line 178) return value.replace(/^0/, "") equal '0' -> ''

vercel[bot] commented 6 months ago

@Toru-Takagi is attempting to deploy a commit to the Formkit Team on Vercel.

A member of the Team first needs to authorize it.

justin-schroeder commented 6 months ago

Thanks!