mirror of
https://github.com/wolfswolke/DeathGarden_API_Rebirth.git
synced 2026-10-20 21:40:53 -05:00
Cosmetic. Added real Value to CurrentTime
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user