fixing an error where dates components were not replaced in logical order
This commit is contained in:
parent
a4e294634a
commit
a563986ce4
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue