Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: dateToUnix to preserve the date #434 #435

Merged
merged 1 commit into from
Dec 11, 2024

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