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('month') gives last day in previous month #2007
Comments
Hi, this is a correct result, moment.js has the same result. |
@Bykiev cool, except the start of the month isn't June 30th when |
GMT is an UTC time, London has an UTC offset +0100 |
@Bykiev, Okay, but, in Europe > London right now the start of the month according to my calendar isn't June 30th 🤣, how do I resolve this issue? |
If you'll use |
I created a simple webpage to test the function:
So I cannot reproduce this error neither on Chrome 103 nor in Firefox 103 on my windows 10 machine. Could you try this code on your system? |
Hey @Bykiev @BePo65, it feels like I am also facing this bug. I am trying to work in 'Etc/UTC', setting specific date and using Here is a code to reproduce: https://codesandbox.io/s/dayjs-playground-forked-sdy6hk?file=/src/index.js. I am using |
Describe the bug
Start of month is incorrect and showing the last day in previous month.
The above when console logged outputs:
Which I think we can all agree is incorrect
Expected behavior
start of time should always return correct times.
Information
The text was updated successfully, but these errors were encountered: