From ba6d89d8e185262bd2d307e2eea291b7859cb340 Mon Sep 17 00:00:00 2001 From: Florez Ospina Juan Felipe Date: Mon, 1 Jul 2024 16:19:28 +0200 Subject: [PATCH] Modified created at function to output date time and time zone --- src/g5505_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/g5505_utils.py b/src/g5505_utils.py index 082e906..b9e61c3 100644 --- a/src/g5505_utils.py +++ b/src/g5505_utils.py @@ -103,7 +103,8 @@ def created_at(): now_tz_aware = now.astimezone() tz = now_tz_aware.strftime('%z') #created_at = now_tz_aware.strftime('%Y-%m-%d_%H-%M-%S')+'_utcoffset_' + tz - created_at = now_tz_aware.strftime('%Y-%m-%d')+'_UTC-OFST_' + tz + #created_at = now_tz_aware.strftime('%Y-%m-%d')+'_UTC-OFST_' + tz + created_at = now_tz_aware.strftime('%Y-%m-%d %H:%M:%S') +'_UTC-OFST_' + tz # Make created at timestamp with tz information #created_at = now.isoformat() return created_at