Skip to content
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

ISO 8601: Missing colon in timezone #451

Closed
MarkKremer opened this issue Oct 16, 2015 · 5 comments
Closed

ISO 8601: Missing colon in timezone #451

MarkKremer opened this issue Oct 16, 2015 · 5 comments

Comments

@MarkKremer
Copy link

Hello,

Shouldn't the toIso8601String() method have an colon between the hours and minutes in the timezone part?
1975-12-25T14:15:16-0500 becomes 1975-12-25T14:15:16-05:00

Spec: http://www.w3.org/TR/NOTE-datetime

Kind regards,

Mark Kremer

@dereuromark
Copy link
Contributor

We fixed it in Chronos using atom: cakephp/chronos#45
The PHP constant turns out to be wrong here..

@MarkKremer
Copy link
Author

Thanks!

@dereuromark
Copy link
Contributor

You should leave it open for Carbon though.
Here it is not fixed yet.

Just wanted to show you how it can be fixed.
Feel free to open a PR for this repo.

@MarkKremer MarkKremer reopened this Nov 1, 2015
@briannesbitt
Copy link
Owner

Ya... its a bit of a BC change but I guess more of a bug based on the PHP implementation.

@egeriis
Copy link

egeriis commented Mar 16, 2016

@briannesbitt When will there be a release with this patch?

ameliaikeda pushed a commit to ameliaikeda/Carbon that referenced this issue Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants