angular-calendar icon indicating copy to clipboard operation
angular-calendar copied to clipboard

dayClicked event has invalid date value (respecting timezone)

Open angelaki opened this issue 3 years ago • 1 comments

Describe the bug

Right now, the day value of the dayClicked is actually wrong, respecting the timezone (e.g. Wed Aug 10 2022 00:00:00 GMT+0200 (Mitteleuropäische Sommerzeit)). Changing this would be a breaking change, but I'd suggest / would offer to implement it, if desired.

Are you interested in such a fix? Guess it's pretty hard since it involves the whole library.

Minimal reproduction of the problem with instructions

This stackblitz shows you the ISO date on clicking: https://stackblitz.com/edit/angular-calendar-qstsuv?file=demo%2Ftemplate.html,demo%2Fcomponent.ts

Screenshots

image

Versions

  • @angular/core: 14.1.0
  • angular-calendar: 0.29.0
  • Browser name and version: Chrome 103.0.5060.134

angelaki avatar Jul 27 '22 11:07 angelaki

Thanks so much for opening an issue! If you'd like me to give priority to answering your issue or would just like to support this project, then please consider sponsoring me

matts-bot[bot] avatar Jul 27 '22 11:07 matts-bot[bot]