From 4ac3b2f16606ba8d326c5d3e5e23e9d8e10d1b7f Mon Sep 17 00:00:00 2001 From: vapao Date: Wed, 23 Jun 2021 11:17:41 +0800 Subject: [PATCH] fix issue --- spug_api/apps/host/utils.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/spug_api/apps/host/utils.py b/spug_api/apps/host/utils.py index 49d2aee..c3847e2 100644 --- a/spug_api/apps/host/utils.py +++ b/spug_api/apps/host/utils.py @@ -53,13 +53,6 @@ def parse_utc_date(value): return date.astimezone().strftime('%Y-%m-%d %H:%M:%S') -def parse__date(value, supplier): - if not value: - return None - date = datetime.strptime(value, '%Y-%m-%dT%H:%M%z') - return date.astimezone().strftime('%Y-%m-%d %H:%M:%S') - - def fetch_ali_regions(ak, ac): params = dict(Action='DescribeRegions') res = make_ali_request(ak, ac, 'http://ecs.aliyuncs.com', params)