Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

[BUG] daysOfTheCurrentWeek() pose problème pour certaines heures #207

Open
EDM115 opened this issue Jun 14, 2024 · 0 comments
Open

[BUG] daysOfTheCurrentWeek() pose problème pour certaines heures #207

EDM115 opened this issue Jun 14, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@EDM115
Copy link
Member

EDM115 commented Jun 14, 2024

Exemple de retour :

Date actuelle : 14/06/2024 09:53:13
daysOfTheCurrentWeek() => [
  "2024-06-10T07:53:13.421Z",
  "2024-06-11T07:53:13.421Z",
  "2024-06-12T07:53:13.421Z",
  "2024-06-13T07:53:13.421Z",
  "2024-06-14T07:53:13.421Z",
  "2024-06-15T07:53:13.421Z",
  "2024-06-16T07:53:13.421Z"
]

ce décalage de 2h fait (en France) qu'entre minuit et 2h le dimanche de la semaine précédente sera inclus et celui de la semaine en cours omis
globalement c'est dépendent de la timezone, ce qui ne devrait pas être le cas

@EDM115 EDM115 self-assigned this Jun 14, 2024
@EDM115 EDM115 added the bug Something isn't working label Jun 14, 2024
@EDM115 EDM115 mentioned this issue Jun 22, 2024
5 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant