HomeSoftware Heritage

model: Raise error on naive datetimes.

Description

model: Raise error on naive datetimes.

We may unknowingly pass naive datetimes to the storage through them,
causing the underlying DB to assign them a timezone that might not match
the actual one.

It already happens in swh.model and swh.loader.package tests.

Details

Provenance
vlorentzAuthored on Aug 14 2020, 2:12 PM
vlorentzPushed on Aug 14 2020, 3:40 PM
Differential Revision
D3793: model: Raise error on naive datetimes.
Parents
rDMODd1db7b9954b7: model.Content.to_dict: Remove ctime entry when it's None
Branches
Unknown
Tags
Unknown
Build Status
Buildable 14578
Build 22453: test-and-buildJenkins console · Jenkins