mirror of
https://github.com/Mastermindzh/tidal-hifi.git
synced 2025-01-20 09:00:33 +01:00
Revert "Fix Discord RPC Timestamp jitter"
This commit is contained in:
parent
aaf7a1b662
commit
579207e8a0
@ -103,7 +103,8 @@ const getActivity = (): SetActivity => {
|
||||
if (includeTimestamps) {
|
||||
const currentSeconds = convertDurationToSeconds(mediaInfo.current);
|
||||
const durationSeconds = convertDurationToSeconds(mediaInfo.duration);
|
||||
const now = Math.trunc((Date.now() + 500) / 1000);
|
||||
const date = new Date();
|
||||
const now = Math.floor(date.getTime() / 1000);
|
||||
presence.startTimestamp = now - currentSeconds;
|
||||
presence.endTimestamp = presence.startTimestamp + durationSeconds;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user