mattlewis92 / angular-calendar

A flexible calendar component for angular 15.0+ that can display events on a month, week or day view.
https://mattlewis92.github.io/angular-calendar/
MIT License
2.72k stars 864 forks source link

dayClicked event has invalid date value (respecting timezone) #1593

Open angelaki opened 2 years ago

angelaki commented 2 years ago

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

matts-bot[bot] commented 2 years ago

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