We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
$alternateFormat in to_carbon helper is used too late in the method and will sometimes be missed completely.
$alternateFormat
to_carbon
The date format m/d/Y comes out wrong when being passed to to_carbon because of this
m/d/Y
to_carbon('06/02/2000', 'm/d/Y')->format('m/d/Y'); // outputs 02/06/2000
$value is caught by line 947
$value
// Try to convert it using strtotime(). if (($date = strtotime($value)) !== false) { return Carbon\Carbon::createFromTimestamp($date); }
If $alternateFormat is used i believe createFromFormat() should come sooner in this method.
createFromFormat()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
$alternateFormat
into_carbon
helper is used too late in the method and will sometimes be missed completely.The date format
m/d/Y
comes out wrong when being passed toto_carbon
because of this$value
is caught by line 947If
$alternateFormat
is used i believecreateFromFormat()
should come sooner in this method.The text was updated successfully, but these errors were encountered: