mirror of
				https://github.com/Mastermindzh/tidal-hifi.git
				synced 2025-10-31 16:59:09 +01:00 
			
		
		
		
	fix: discord rpc timestamp jitter
This commit is contained in:
		| @@ -103,8 +103,7 @@ const getActivity = (): SetActivity => { | ||||
|     if (includeTimestamps) { | ||||
|       const currentSeconds = convertDurationToSeconds(mediaInfo.current); | ||||
|       const durationSeconds = convertDurationToSeconds(mediaInfo.duration); | ||||
|       const date = new Date(); | ||||
|       const now = Math.floor(date.getTime() / 1000); | ||||
|       const now = Math.trunc((Date.now() + 500) / 1000); | ||||
|       presence.startTimestamp = now - currentSeconds; | ||||
|       presence.endTimestamp = presence.startTimestamp + durationSeconds; | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user