From 31c9db98cae199e0273d364d4af7f54f729fb489 Mon Sep 17 00:00:00 2001 From: Florez Ospina Juan Felipe Date: Wed, 9 Oct 2024 16:07:40 +0200 Subject: [PATCH] Changed datetime format output of created_at() function as '%Y-%m-%d %H:%M:%S.%f' --- utils/g5505_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/g5505_utils.py b/utils/g5505_utils.py index dafe78e..09000b7 100644 --- a/utils/g5505_utils.py +++ b/utils/g5505_utils.py @@ -106,7 +106,7 @@ def created_at(): now_tz_aware = now.astimezone() tz = now_tz_aware.strftime('%z') # Replace colons in the time part of the timestamp with hyphens to make it file name friendly - created_at = now_tz_aware.strftime('%Y-%m-%d_%H-%M-%S') + '_UTC-OFST_' + tz + created_at = now_tz_aware.strftime('%Y-%m-%d %H:%M:%S') #+ '_UTC-OFST_' + tz return created_at def convert_dataframe_to_np_structured_array(df: pd.DataFrame):