mirror of
https://github.com/wassname/catalyst.git
synced 2026-06-30 14:03:08 +08:00
small fix
This commit is contained in:
@@ -57,13 +57,13 @@ def iso8061_to_epoch(datestring):
|
||||
return EPOCH(dt)
|
||||
|
||||
def epoch_now():
|
||||
dt = datetime.utcnow().replace(tzinfo=pytz.utc)
|
||||
dt = utcnow()
|
||||
return EPOCH(dt)
|
||||
|
||||
# UTC Datetime Subclasses
|
||||
# -----------------------
|
||||
def utcnow():
|
||||
return datetime.now(pytz.utc)
|
||||
return datetime.utcnow().replace(tzinfo=pytz.utc)
|
||||
|
||||
class utcdatetime(datetime):
|
||||
def __new__(cls, *args, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user