small fix

This commit is contained in:
fawce
2012-05-18 13:34:20 -04:00
parent 93cc4bc172
commit 531907970b
+2 -2
View File
@@ -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):