Flash uses miliseconds for epoch ...

see https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/Date.html
This commit is contained in:
Bluzume 2019-09-17 19:26:07 +12:00 committed by GitHub
parent 85e7556aad
commit 9254c4deda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -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))

View File

@ -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)

View File

@ -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