Make sure the UTC tz is included in the bucket creation timestamp
This commit is contained in:
parent
2433d64fe2
commit
ca49b41599
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user