Skip to content

Conversation

@patrislav
Copy link
Member

No description provided.

}

export function getLocalTime() {
return new Date().getTime()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

interesting.. new Date().getTime() works differently then Date.now() ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've confirmed, Date.now() is very weird, and does not consider day light savings

@patrislav patrislav marked this pull request as ready for review November 29, 2024 20:57
@pkieltyka pkieltyka merged commit 9d8aed4 into master Nov 29, 2024
22 checks passed
@pkieltyka pkieltyka deleted the attempt-another-time-drift-fix branch November 29, 2024 21:00
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.

3 participants