]> dreyeck.freedombox.rocks Git - topic-maps.git/blobdiff - src/ctm/reader.lisp
Canonicalize DateTime timezone offsets with explicit baseline discrepancies
[topic-maps.git] / src / ctm / reader.lisp
index f73c242e4909fcc3cbe53c80f5222811b65813c7..692065d400b3aa3b47a94411594ac1a8aeb26891 100644 (file)
@@ -98,8 +98,9 @@
        (consume parser)
        (multiple-value-bind (value reason) (topic-maps.tmdm:canonical-datetime-lexical-form (token-value token))
          (unless value (problem 'ctm-unsupported
-                         (if (eq reason :unsupported-timezone) :datetime-timezone-canonicalization :datetime-leap-second-context)
-                         (token-position token) "DateTime value normalization requires an unsupported timezone/leap context."))
+                         (if (eq reason :unsupported-bce-timezone-rollover)
+                             :datetime-bce-timezone-rollover :datetime-leap-second-context)
+                         (token-position token) "DateTime normalization is outside the supported BCE/leap-second calendar context."))
          (values value (topic-maps.tmdm:datetime-datatype))))
       (:excluded-literal
        (problem 'ctm-unsupported :occurrence-literal-datatype (token-position token)