Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Benchol opened this issue Jul 15, 2024 · 1 comment

Comments

@Benchol
Copy link

Benchol commented Jul 15, 2024

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

  • angular 17.0.0
  • angular-calendar 0.31.0
  • Browser chrome
@matts-bot
Copy link

matts-bot bot commented Jul 15, 2024

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

@Benchol Benchol changed the title How to customize the current time in calendar for a specific time zone using moment How to customize the current time marker in calendar for a specific time zone using moment Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant