-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
startOf not working when the timezone is set to UTC+0:00 #2373
Comments
Any updates? |
To add more clarity on this.
It fails with the following error message ● UTC and startOfDay
My machine timezone is UTC+05:30. I think it doing a startOf('d') based on my timezone and then converting it to UTC+0:00. @iamkun I see that you are actively resolving issues on the repo. Can you please help on this? |
The same goes for |
@aivanov-noveo what exactly is wrong with |
@michelengelen here is a bit of code:
the result (winter times are incorrect, summer ones are correct), my local timezone offset is +04:00
|
@aivanov-noveo this is a different problem and I think that will be resolved when #2118 gets merged. This is what I got from the short script you mentioned before:
I hope @iamkun will merge both of the PRs soonish, so the issues can e solved with it! Thanks for taking the time to raise this issue as well. |
Describe the bug
When I set the timezone to Africa/Accra(UTC+00:00), the startOf function starts behaving weirdly.
Code
Expected behavior
The Start time in case of 'Africa/Accra' should be 2023-07-10T00:00:00Z and not 2023-07-09T18:30:00Z
Information
The text was updated successfully, but these errors were encountered: