HomeSoftware Heritage

Allow negative_utc to be None in normalize_timestamp()

Description

Allow negative_utc to be None in normalize_timestamp()

thus in TimestampWithTimezone.from_dict(). This is needed to help consuming
existing (invalid) messages from kafka.

Warning: tests added in this revision do not cover the whole
normalize_timestamp() function.

Details

Provenance
douarddaAuthored on Jun 11 2020, 5:00 PM
douarddaPushed on Jun 15 2020, 9:44 AM
Differential Revision
D3263: Allow negative_utc to be None in normalize_timestamp()
Parents
rDMOD3d9f69444aeb: Use Tuple instead of List in model declarations.
Branches
Unknown
Tags
Unknown
References
tag: v0.3.1
Build Status
Buildable 12832
Build 19533: test-and-buildJenkins console · Jenkins