roc-lang / basic-webserver

A basic webserver in Roc
https://roc-lang.github.io/basic-webserver/
Universal Permissive License v1.0
76 stars 16 forks source link

Utc implementation does not support dates prior to epoch. #30

Closed imclerran closed 9 months ago

imclerran commented 9 months ago

Utc does not currently support dates prior to epoch

This means that simple integer comparison with any date prior to 1970 is impossible using Utc. This also means that any library which attempts to parse ISO 8601 date strings to the Utc type will not be able to support the full range of ISO standard dates. Converting Utc from unsigned to signed integer will resolve this issue.

Opening an issue and PR for this as discussed on Zulip chat.