Make sure the UTC tz is included in the bucket creation timestamp

This commit is contained in:
Tim Van Laer 2020-06-02 11:32:47 +02:00
parent 2433d64fe2
commit ca49b41599

View File

@ -5,6 +5,7 @@ import json
import os
import base64
import datetime
import pytz
import hashlib
import copy
import itertools
@ -776,7 +777,7 @@ class FakeBucket(BaseModel):
self.notification_configuration = None
self.accelerate_configuration = None
self.payer = "BucketOwner"
self.creation_date = datetime.datetime.utcnow()
self.creation_date = datetime.datetime.now(tz=pytz.utc)
self.public_access_block = None
self.encryption = None