mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-09-01 07:30:00 +02:00
Times in milliseconds
This commit is contained in:
parent
d3172ece9b
commit
add64249cd
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue