feat: optimize current time (#661)

This commit is contained in:
John Wang
2023-07-27 22:15:07 +08:00
committed by GitHub
parent eae670ea4a
commit d979955c8a
3 changed files with 5 additions and 4 deletions

View File

@@ -158,4 +158,4 @@ def generate_text_hash(text: str) -> str:
def get_current_datetime(type: str) -> str:
# get current time
current_time = datetime.utcnow()
return current_time.strftime("%Y-%m-%d %H:%M:%S %Z%z")
return current_time.strftime("%Y-%m-%d %H:%M:%S UTC+0000 %A")