-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use RFC 3339 format for timestamp #669
Conversation
Review status: 0 of 1 files reviewed at latest revision, 1 unresolved discussion. projects/coordinator/src/main/java/org/batfish/coordinator/WorkMgr.java, line 800 at r1 (raw file):
Here's my general tips for making this more future-proof: a) don't construct JSON strings manually and b) let the mapping libraries to the serialization work in a general way. Here's what I'd do:
Comments from Reviewable |
projects/coordinator/src/main/java/org/batfish/coordinator/WorkMgr.java, line 800 at r1 (raw file): Previously, dhalperi (Dan Halperin) wrote…
May also need to add and/or register the Java8 jackson library, which adds knowledge to Jackson that java.time.Instant (new in Java8) is a date-like class. https://github.com/FasterXML/jackson-modules-java8/tree/master/datetime Comments from Reviewable |
Reviewed 1 of 1 files at r1. Comments from Reviewable |
Reviewed 6 of 6 files at r2. projects/batfish-common-protocol/src/main/java/org/batfish/datamodel/TestrigMetadata.java, line 8 at r2 (raw file):
just projects/batfish-common-protocol/src/test/java/org/batfish/datamodel/TestrigMetadataTest.java, line 22 at r2 (raw file):
just add projects/coordinator/src/main/java/org/batfish/coordinator/WorkMgr.java, line 801 at r2 (raw file):
same comment about Comments from Reviewable |
Reviewed 1 of 1 files at r3, 1 of 1 files at r4. Comments from Reviewable |
Review status: 2 of 6 files reviewed at latest revision, 3 unresolved discussions. projects/batfish-common-protocol/src/main/java/org/batfish/datamodel/TestrigMetadata.java, line 8 at r2 (raw file): Previously, dhalperi (Dan Halperin) wrote…
Done. projects/batfish-common-protocol/src/test/java/org/batfish/datamodel/TestrigMetadataTest.java, line 22 at r2 (raw file): Previously, dhalperi (Dan Halperin) wrote…
Done. projects/coordinator/src/main/java/org/batfish/coordinator/WorkMgr.java, line 801 at r2 (raw file): Previously, dhalperi (Dan Halperin) wrote…
Done. Comments from Reviewable |
Reviewed 4 of 4 files at r5. Comments from Reviewable |
Updated timestamp to use RFC 3339's accepted timestamp format (see RFC 3339 sections 5.6, 5.8; example:
1985-04-12T23:20:50.52Z
). Also renamed thetimestamp
property in the metadata tocreationTimestamp
.This change is