fix: use UTC when updating timestamp in DB
per changes in wuttjamaican
This commit is contained in:
parent
824889dfe0
commit
bfbc2338dc
1 changed files with 1 additions and 2 deletions
|
|
@ -24,7 +24,6 @@
|
||||||
Upgrade Views
|
Upgrade Views
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import datetime
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
|
@ -289,7 +288,7 @@ class UpgradeView(MasterView): # pylint: disable=abstract-method
|
||||||
logger("upgrade command had exit code: %s", upgrade.exit_code)
|
logger("upgrade command had exit code: %s", upgrade.exit_code)
|
||||||
|
|
||||||
# declare it complete
|
# declare it complete
|
||||||
upgrade.executed = datetime.datetime.now()
|
upgrade.executed = self.app.make_utc()
|
||||||
upgrade.executed_by = user
|
upgrade.executed_by = user
|
||||||
if upgrade.exit_code == 0:
|
if upgrade.exit_code == 0:
|
||||||
upgrade.status = enum.UpgradeStatus.SUCCESS
|
upgrade.status = enum.UpgradeStatus.SUCCESS
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue