Flash uses miliseconds for epoch ...
see https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/Date.html
This commit is contained in:
parent
85e7556aad
commit
9254c4deda
|
@ -76,7 +76,7 @@ def TryCreate():
|
|||
|
||||
c = db.cursor()
|
||||
c.execute('UPDATE users SET LastSession=NULL WHERE LastSession=?',(authToken,))
|
||||
c.execute('INSERT INTO users VAlUES (?,?,?,?,?)',(username,PassHashSalted,Salt,authToken,math.floor(time.time())))
|
||||
c.execute('INSERT INTO users VAlUES (?,?,?,?,?)',(username,PassHashSalted,Salt,authToken,math.floor(time.time()*1000)))
|
||||
c.execute('INSERT INTO securityQuestion VAlUES (?,?,?)',(username,questionType,AnswerHashSalted))
|
||||
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ def TryAdd():
|
|||
username = rows[0]
|
||||
|
||||
c.execute('DELETE from harvestablesList where Name=? and HarvestableName=? and AreaId=? and ParentContainerName=?',(username,HarvestableName,AreaId,ContainerName))
|
||||
c.execute('UPDATE containerList SET LastHarvest=? WHERE Name=? AND ContainerName=? AND AreaId=?',(math.floor(time.time()),username,ContainerName,AreaId))
|
||||
c.execute('UPDATE containerList SET LastHarvest=? WHERE Name=? AND ContainerName=? AND AreaId=?',(math.floor(time.time()*1000),username,ContainerName,AreaId))
|
||||
|
||||
try:
|
||||
db = sqlite3.connect(SQLLITE_DB_PATH)
|
||||
|
|
|
@ -42,7 +42,7 @@ def TryGet():
|
|||
rows = cur.fetchone()
|
||||
CreationTime = rows[0]
|
||||
|
||||
result['serverTime'] = math.floor(time.time())
|
||||
result['serverTime'] = math.floor(time.time()*1000)
|
||||
result['creationTime'] = CreationTime
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue