test:update metchod about get current datetime
This commit is contained in:
parent
65d4b024f3
commit
b04bc1aee2
|
@ -1120,7 +1120,7 @@ class Database:
|
|||
@classmethod
|
||||
def setupLastTick(cls):
|
||||
# start time will be auto generated , start at 10 years ago local time
|
||||
local_time = datetime.datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S.%f')[:-16]
|
||||
local_time = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f')[:-16]
|
||||
local_epoch_time = [int(i) for i in local_time.split("-")]
|
||||
#local_epoch_time will be such as : [2022, 7, 18]
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ class Logging:
|
|||
|
||||
@classmethod
|
||||
def _get_datetime(cls):
|
||||
return datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S.%f')[:-1]
|
||||
return datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f')[:-1]
|
||||
|
||||
@classmethod
|
||||
def getLogger(cls):
|
||||
|
|
Loading…
Reference in New Issue