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

Validering i tidssoner med negativ offset fra UTC feiler #494

Open
enstulen opened this issue Apr 19, 2024 · 0 comments · May be fixed by #507
Open

Validering i tidssoner med negativ offset fra UTC feiler #494

enstulen opened this issue Apr 19, 2024 · 0 comments · May be fixed by #507

Comments

@enstulen
Copy link

enstulen commented Apr 19, 2024

Hvis en bruker for eksempel sitter i LA med tidssonen America/Los_Angeles vil new Date() med en fødselsdato (uten definert tidspunkt) returnere 1 dag før ved date.getDate(). Siden dette valideres mot fnr string inputen så feiler valideringen med invalid date feilmelding.

Hvordan reprodusere:

  • Endre nettleseren din sin tidssone ved å feks bruke denne pluginen i chrome eller ved å bruke lokasjon-setting i chrome dev tools
  • Kjør valideringsfunksjonen med et gyldig fødselsnummer
@Magnuti Magnuti linked a pull request Aug 21, 2024 that will close this issue
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 a pull request may close this issue.

1 participant