From 16411fc35e3fa05b301f67e4b455719308d14aac Mon Sep 17 00:00:00 2001 From: Scott Black Date: Tue, 1 Oct 2019 12:59:06 -0600 Subject: [PATCH] update formatting --- repo2docker/contentproviders/hydroshare.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repo2docker/contentproviders/hydroshare.py b/repo2docker/contentproviders/hydroshare.py index f0a8b0d1..b300ce50 100755 --- a/repo2docker/contentproviders/hydroshare.py +++ b/repo2docker/contentproviders/hydroshare.py @@ -39,7 +39,7 @@ class Hydroshare(DoiProvider): )["start_date"] # Hydroshare timestamp always returns the same timezone, so strip it date = date.split(".")[0] - parsed_date = datetime.strptime(date, "%Y-%m-%dT%H:%M:%S") + parsed_date = datetime.strptime(date, "%Y-%m-%dT%H:%M:%S") epoch = parsed_date.replace(tzinfo=timezone(timedelta(0))).timestamp() # truncate the timestamp return str(int(epoch))