Fix typo in utils.py

Change-Id: I3722243a8cd31a16bfc60fda45acb7a9d0a0dc47
This commit is contained in:
Huachao Mao 2017-12-14 16:49:06 +08:00
parent ca51d0d7ad
commit fca65e9d44
1 changed files with 2 additions and 2 deletions

View File

@ -113,8 +113,8 @@ def decimal_to_dt(dec):
integer = int(dec)
micro = (dec - decimal.Decimal(integer)) * decimal.Decimal(units.M)
daittyme = datetime.datetime.utcfromtimestamp(integer)
return daittyme.replace(microsecond=int(round(micro)))
date_time = datetime.datetime.utcfromtimestamp(integer)
return date_time.replace(microsecond=int(round(micro)))
def hash_of_set(s):