From 65c93ddc6ddacdb18cf4df3db67f49b6f474c244 Mon Sep 17 00:00:00 2001 From: Robert Sparks Date: Mon, 11 Jan 2021 18:51:50 +0000 Subject: [PATCH] Reverted timezone related change to check-copyright, which is not a django script. - Legacy-Id: 18789 --- bin/check-copyright | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/check-copyright b/bin/check-copyright index 4a29f2c2e..6698e3fda 100755 --- a/bin/check-copyright +++ b/bin/check-copyright @@ -162,7 +162,7 @@ def get_first_commit(path): else: pass except OSError: - rev, who, when = None, None, timezone.now() + rev, who, when = None, None, datetime.datetime.now() return { path: { 'rev': rev, 'who': who, 'date': when.strftime('%Y-%m-%d %H:%M:%S'), }, }