-
-
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
Adding a day to April 1st not working #262
Comments
@alebenson Seems ok to me. https://runkit.com/embed/szquqbtnx2rh Any other information you could provide? |
@iamkun your sample is working for us but when we try to do the same on RunKit, we get the same output as the first message. https://runkit.com/embed/r9j51zfzg7kr var dayjs = require("dayjs")
console.log(dayjs("2018-04-01").add(1,"day").format("dddd, DD MMM YY")) // Sunday, 01 Apr 18
console.log(dayjs("2018-04-01").add(2,"day").format("dddd, DD MMM YY")) // Monday, 02 Apr 18 https://jsfiddle.net/pxw7gumo/ console.log(dayjs("2018-04-01").add(1,"day").format("dddd, DD MMM YY")) // Sunday, 01 Apr 18
console.log(dayjs("2018-04-01").add(2,"day").format("dddd, DD MMM YY")) // Monday, 02 Apr 18 |
@alebenson Interesting. Your timezone, DST please? |
Hello @iamkun any update on this or a workaround? |
@alebenson, you could use the raw Otherwise you case appears to be the same, as I commented about at the issue #329 and similar to the others, who assume, that there's something like a "date-only mode" (#249 and #74). |
@alebenson You may could try v1.7.7 and check if this issue is fixed in your timezone. THX. |
I'm trying to add 1 day from the first of April to get Monday, 02 Apr 18, and I get the same date.
The text was updated successfully, but these errors were encountered: