fixing an error where dates components were not replaced in logical order

This commit is contained in:
kevgliss 2015-09-16 11:10:09 -07:00
parent a4e294634a
commit a563986ce4
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ def convert_date_to_utc_time(date):
:return:
"""
d = arrow.get(date)
return arrow.utcnow().replace(day=d.naive.day).replace(month=d.naive.month).replace(year=d.naive.year)\
return arrow.utcnow().replace(year=d.naive.year).replace(month=d.naive.month).replace(day=d.naive.day)\
.replace(microsecond=0)