Skip to content

Conversation

@DerBasler
Copy link
Contributor

trunc the ms instead of round to avoid edge cases where the date would be changed example: Math.round((new Date('2024-12-10T23:59:59.999Z')).getTime() / 1000) vs
Math.trunc((new Date('2024-12-10T23:59:59.999Z')).getTime() / 1000)

trunc the ms instead of round to avoid edge cases where the date would be changed example: 
Math.round((new Date('2024-12-10T23:59:59.999Z')).getTime() / 1000)
vs
Math.trunc((new Date('2024-12-10T23:59:59.999Z')).getTime() / 1000)
@iM-GeeKy iM-GeeKy merged commit fe12955 into web-ridge:master Dec 11, 2024
5 checks passed
@iM-GeeKy iM-GeeKy mentioned this pull request Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants