mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-11-23 16:54:15 +01:00
Times in milliseconds
This commit is contained in:
1 parent
d3172ece9b
commit
add64249cd
2 files changed
+2
-2
No files matched your search
@@ -172,7 +172,7 @@ extension LocalLibraryItem {
|
||||
tracks.forEach { t in audioTracks.append(AudioTrack.detachCopy(of: t)!) }
|
||||
}
|
||||
|
||||
let dateNow = Date().timeIntervalSince1970
|
||||
let dateNow = Date().timeIntervalSince1970 * 1000
|
||||
return PlaybackSession(
|
||||
id: sessionId,
|
||||
userId: self.serverUserId,
|
||||
|
||||
@@ -223,7 +223,7 @@ class PlayerHandler {
|
||||
session.update {
|
||||
session.currentTime = playerCurrentTime
|
||||
session.timeListening += listeningTimePassedSinceLastSync
|
||||
session.updatedAt = Date().timeIntervalSince1970
|
||||
session.updatedAt = Date().timeIntervalSince1970 * 1000
|
||||
}
|
||||
listeningTimePassedSinceLastSync = 0
|
||||
|
||||
|
||||
Reference in new issue
Block a user