Sonarr::TimeConverter
Converts format: date-time schema properties to/from Crystal Time.
Sonarr emits timestamps in a few flavours (RFC 3339 with Z, offsets, and
timezone-less "unset" values such as 0001-01-01T00:00:00). Reads are
lenient across those shapes; writes are normalised to RFC 3339.
Constants
FORMATS = {"%Y-%m-%dT%H:%M:%S.%N%z", "%Y-%m-%dT%H:%M:%S%z", "%Y-%m-%dT%H:%M:%S.%N", "%Y-%m-%dT%H:%M:%S", "%Y-%m-%d"}