We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cca915 commit b26bf8eCopy full SHA for b26bf8e
src/services/Serialization.jl
@@ -21,9 +21,12 @@ function _fixSubseconds(a)
21
end
22
23
function getStandardZDTString(stringTimestamp::String)
24
+ # Additional check+fix for the ultraweird "2020-08-12T12:00Z"
25
+ ts = replace(stringTimestamp, r"T(\d\d):(\d\d)(Z|z|\+|-)" => s"T\1:\2:00.000\3")
26
+
27
# This is finding :59Z or :59.82-05:00 and fixing it to always have 3 subsecond digits.
28
# Temporary fix until TimeZones.jl gets an upstream fix.
- return replace(stringTimestamp, r":\d\d(\.\d+)?(Z|z|\+|-)" => _fixSubseconds)
29
+ return replace(ts, r":\d\d(\.\d+)?(Z|z|\+|-)" => _fixSubseconds)
30
31
32
# Corrects any `::ZonedDateTime` fields of T in corresponding `interm::Dict` as `dateformat"yyyy-mm-ddTHH:MM:SS.ssszzz"`
0 commit comments