Cosmetic. Added real Value to CurrentTime

This commit is contained in:
ZKWolf
2024-02-04 16:23:38 +01:00
parent 1affa6e57b
commit da05c5bb97
2 changed files with 15 additions and 4 deletions

View File

@@ -15,3 +15,13 @@ def get_time():
except Exception as e:
logger.error("Error in time_handler -> " + str(e))
return None, None
def get_date_and_time():
try:
current_time = datetime.datetime.utcnow()
formatted_time = current_time.strftime('%a, %d %b %Y %H:%M:%S MEZ')
return formatted_time
except Exception as e:
logger.error("Error in time_handler -> " + str(e))
return None