Fixed registered field having wrong timezone
This happened with at least Postgres, which took it's server's timezone. It's complicated. Let's just set it from our side instead where we have some control.
This commit is contained in:
@@ -61,6 +61,7 @@ async def create(
|
||||
|
||||
db_item = models.Spool(
|
||||
filament=filament_item,
|
||||
registered=datetime.utcnow().replace(microsecond=0),
|
||||
used_weight=used_weight,
|
||||
first_used=first_used,
|
||||
last_used=last_used,
|
||||
|
||||
Reference in New Issue
Block a user