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

How to customize the current time marker in calendar for a specific time zone using moment #1729

Open Benchol opened 1 month ago

Benchol commented 1 month ago

Is your feature request related to a problem? Please describe I am facing a problem where I have to match the calendar to the timezone of a client who has a specific timezone and the calendar must correspond to this timezone, even the current time of the calendar

Describe the solution you'd like I have already assigned the viewDate to the date with the specific timezone. Here I just use "as" for typescript because if I parse the Moment with the toDate it will take the timezone of my local and not the one I have specified for the moment viewDate = (moment.tz('Europe/Brussels').set({day: 16}) as unknown) as Date;

Describe your use case for implementing this feature

Additional context

matts-bot[bot] commented 1 month ago

Thanks so much for opening an issue! If you'd like to support this project, then please consider sponsoring me