gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[www_shared] branch master updated: grab GMT time


From: gnunet
Subject: [www_shared] branch master updated: grab GMT time
Date: Fri, 03 Jul 2020 11:27:26 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository www_shared.

The following commit(s) were added to refs/heads/master by this push:
     new ad8237e  grab GMT time
ad8237e is described below

commit ad8237e554879982c1c0d15a17276af9eb41d653
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Fri Jul 3 11:21:21 2020 +0200

    grab GMT time
---
 time.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/time.py b/time.py
index 07cb86d..9b53d1b 100644
--- a/time.py
+++ b/time.py
@@ -21,7 +21,7 @@ import datetime
 import email.utils
 
 def time_now():
-    return datetime.datetime.now()
+    return datetime.datetime.now(tz=datetime.timezone.utc)
 
 def conv_date(t):
     # naively assumes its input is always a Y-m-d.

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]