You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i'm trying to guess what's going on here, by default the createFromFormat() method when used with the 'Y-m' format, will add 30 or 31 as days and as there's only 28 days in february , the date become march the 3rd or march the 2nd during leap year.
Thanks!
(I haven't time to check if this issue has already been opened , and sorry if it's normal behavior and just me that did not read correctly the documentation)
The text was updated successfully, but these errors were encountered:
Hello,
I encountered an issue with the following code:
Carbon version: 2.72.2
PHP version: 8.2
https://play.phpsandbox.io/nesbot/carbon?version=3.0.0.0-beta3&input=%3C%3Fphp%0A%0Aecho%20Carbon%3A%3AcreateFromFormat(%27Y-m%27%2C%20%272023-02%27)%3B
I expected to get:
But I actually get:
i'm trying to guess what's going on here, by default the
createFromFormat()
method when used with the 'Y-m' format, will add 30 or 31 as days and as there's only 28 days in february , the date become march the 3rd or march the 2nd during leap year.Thanks!
(I haven't time to check if this issue has already been opened , and sorry if it's normal behavior and just me that did not read correctly the documentation)
The text was updated successfully, but these errors were encountered: