From 1f2fb774b4130d82e1c40e3c8adc43acd2f37093 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 13 Feb 2018 16:50:11 +0100 Subject: [PATCH] Converted another datetime.utcnow() to utils.utcnow() --- pillar/api/file_storage_backends/gcs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pillar/api/file_storage_backends/gcs.py b/pillar/api/file_storage_backends/gcs.py index 5829125b..7ecda06e 100644 --- a/pillar/api/file_storage_backends/gcs.py +++ b/pillar/api/file_storage_backends/gcs.py @@ -10,6 +10,7 @@ import gcloud.exceptions as gcloud_exc from flask import current_app, g from werkzeug.local import LocalProxy +from pillar.api import utils from .abstract import Bucket, Blob, FileType log = logging.getLogger(__name__) @@ -188,7 +189,7 @@ class GoogleCloudStorageBlob(Blob): if is_public: return self.gblob.public_url - expiration = datetime.datetime.utcnow() + datetime.timedelta(days=1) + expiration = utils.utcnow() + datetime.timedelta(days=1) return self.gblob.generate_signed_url(expiration) def make_public(self):