From a563986ce412ceb6f0b2f496624b83ddcf82863c Mon Sep 17 00:00:00 2001 From: kevgliss Date: Wed, 16 Sep 2015 11:10:09 -0700 Subject: [PATCH] fixing an error where dates components were not replaced in logical order --- lemur/plugins/lemur_cloudca/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lemur/plugins/lemur_cloudca/plugin.py b/lemur/plugins/lemur_cloudca/plugin.py index 2cf35b75..2fd6b8a7 100644 --- a/lemur/plugins/lemur_cloudca/plugin.py +++ b/lemur/plugins/lemur_cloudca/plugin.py @@ -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)