mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
SyncServer GUI - fix - removed unwanted UTC
mongo driver automatically converts local date to UTC, pretty_date works with it fine
This commit is contained in:
parent
746b5ba94d
commit
37b9b23e4b
1 changed files with 2 additions and 2 deletions
|
|
@ -1126,7 +1126,7 @@ class SyncServer(PypeModule, ITrayModule):
|
|||
(dictionary)
|
||||
"""
|
||||
val = {"files.$[f].sites.$[s].id": new_file_id,
|
||||
"files.$[f].sites.$[s].created_dt": datetime.utcnow()}
|
||||
"files.$[f].sites.$[s].created_dt": datetime.now()}
|
||||
return val
|
||||
|
||||
def _get_error_dict(self, error="", tries="", progress=""):
|
||||
|
|
@ -1139,7 +1139,7 @@ class SyncServer(PypeModule, ITrayModule):
|
|||
Returns:
|
||||
(dictionary)
|
||||
"""
|
||||
val = {"files.$[f].sites.$[s].last_failed_dt": datetime.utcnow(),
|
||||
val = {"files.$[f].sites.$[s].last_failed_dt": datetime.now(),
|
||||
"files.$[f].sites.$[s].error": error,
|
||||
"files.$[f].sites.$[s].tries": tries,
|
||||
"files.$[f].sites.$[s].progress": progress
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue