feat: optimize current time (#661)

This commit is contained in:
John Wang 2023-07-27 22:15:07 +08:00 committed by GitHub
commit d979955c8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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")