File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 1
1
name = " DistributedFactorGraphs"
2
2
uuid = " b5cc3c7e-6572-11e9-2517-99fb8daf2f04"
3
- version = " 0.19.1 "
3
+ version = " 0.19.2 "
4
4
5
5
[deps ]
6
6
Base64 = " 2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
Original file line number Diff line number Diff line change @@ -68,6 +68,13 @@ function getStandardZDTString(stringTimestamp::String)
68
68
# This is finding :59Z or :59.82-05:00 and fixing it to always have 3 subsecond digits.
69
69
# Temporary fix until TimeZones.jl gets an upstream fix.
70
70
return replace (ts, r" :\d\d (\.\d +)?(Z|z|\+ |-)" => _fixSubseconds)
71
+ # if occursin(r".*\:\d\d\+", packedProps["timestamp"])
72
+ # ZonedDateTime(packedProps["timestamp"], "yyyy-mm-ddTHH:MM:SSzzzz")
73
+ # elseif occursin(r".*\:\d\d\.", packedProps["timestamp"])
74
+ # ZonedDateTime(packedProps["timestamp"], "yyyy-mm-ddTHH:MM:SS.sss+zzzz")
75
+ # else
76
+ # ZonedDateTime(packedProps["timestamp"])
77
+ # end
71
78
end
72
79
73
80
# Corrects any `::ZonedDateTime` fields of T in corresponding `interm::Dict` as `dateformat"yyyy-mm-ddTHH:MM:SS.ssszzz"`
@@ -658,6 +665,8 @@ function unpackFactor(
658
665
UUID (packedProps[" id" ]) else nothing end
659
666
label = packedProps[" label" ]
660
667
668
+ # various formats in which the timestamp might be stored
669
+ packedProps[" timestamp" ] = getStandardZDTString (packedProps[" timestamp" ])
661
670
timestamp = ZonedDateTime (packedProps[" timestamp" ])
662
671
nstime = Nanosecond (get (packedProps, " nstime" , 0 ))
663
672
You can’t perform that action at this time.
0 commit comments