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 865 forks source link

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

Closed angelaki closed 2 years ago

angelaki commented 2 years ago

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.

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

image

matts-bot[bot] commented 2 years ago

This issue has been closed automatically as it did not follow the issue template, please open a new issue that follows the bug report or feature request template.

If you would like to submit a support issue or get a faster reply, please consider sponsoring me.

Thank you! ✌️