Changed datetime format output of created_at() function as '%Y-%m-%d %H:%M:%S.%f'

This commit is contained in:
2024-10-09 16:07:40 +02:00
parent fe96134383
commit 31c9db98ca

View File

@ -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):