Changed DT method to fix UTC time
This commit is contained in:
parent
1294d1a037
commit
dd7031ff19
@ -1,4 +1,4 @@
|
|||||||
from datetime import datetime
|
from datetime import datetime, timezone
|
||||||
from urllib.parse import quote_plus
|
from urllib.parse import quote_plus
|
||||||
from os import remove
|
from os import remove
|
||||||
from typing import Dict, List, Literal, Union
|
from typing import Dict, List, Literal, Union
|
||||||
@ -182,7 +182,7 @@ async def saves_post(device: str, files: List[UploadFile], apikey: APIKey = Depe
|
|||||||
|
|
||||||
zipped = zip_saves(save_data_filename, save_data_file, save_info_file)
|
zipped = zip_saves(save_data_filename, save_data_file, save_info_file)
|
||||||
|
|
||||||
save_date = int(datetime.utcnow().timestamp())
|
save_date = int(datetime.now(tz=timezone.utc).timestamp())
|
||||||
|
|
||||||
index = {
|
index = {
|
||||||
"id": int(save_data["SaveGame"]["uniqueIDForThisGame"]),
|
"id": int(save_data["SaveGame"]["uniqueIDForThisGame"]),
|
||||||
|
Loading…
Reference in New Issue
Block a user