Closed dearlordylord closed 1 week ago
isoDate
is for dates in the format yyyy-mm-dd
. You are probably looking for isoTimestamp
: https://valibot.dev/api/isoTimestamp/
@fabian-hiller perfect! I overlooked this one indeed (saw "timestamp" and thought it's going to be seconds/milliseconds). Thanks 🚀
the usual format that APIs return is somewhat like
2024-06-29T22:03:56Z
(e.g. https://greenwichmeantime.com/articles/clocks/iso/)the format isoDatetime expects is
0000-01-01T00:00
- I doubt it's widely used?a related topic is https://github.com/fabian-hiller/valibot/discussions/63#discussioncomment-6827521 - I guess it's "by design" therefore, but I'd like to leave an issue to signify that the design doesn't match usual expectations (not just mine)
reproduction: