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

date-page-a-day-calendar displays day before in central time zone #787

Open
jaxkookie opened this issue Apr 3, 2024 · 2 comments
Open
Labels
🐞 Bug Issue with one of the samples

Comments

@jaxkookie
Copy link
Contributor

I have used the date-page-a-day-calendar for some time and have not seen any issues. I had a user advise me that the date was displaying the day before, but I could not replicate this. When I remove the script date is correct in both time zones. On a whim I changed my timezone from Eastern to the users in Central. When I applied the script I was able to replicate the bug. The date reflects the day before. I do not see anything that stands out. The only places I found a "-1" in the code it was related to styling.
Can anyone replicate this, or see a way to fix it?

thanks

@jaxkookie jaxkookie added the 🐞 Bug Issue with one of the samples label Apr 3, 2024
@tecchan1107
Copy link
Collaborator

Hi @jaxkookie .

I tried it in my environment and reproduced it.
Also, I verified the behavior of the getDate operator and found that when I changed the time zone of my computer, the date retrieved with the getDate operator displayed a different value than the date displayed in the column.

image

I will create an issue on sp-dev-docs to ask about this phenomenon.

@tecchan1107
Copy link
Collaborator

I created the issue!
SharePoint/sp-dev-docs#9618

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 Bug Issue with one of the samples
Projects
None yet
Development

No branches or pull requests

2 participants