Navigation Menu

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

DateTime.new() doesn't parse lowercase T or Z #4484

Closed
p6rt opened this issue Aug 23, 2015 · 4 comments
Closed

DateTime.new() doesn't parse lowercase T or Z #4484

p6rt opened this issue Aug 23, 2015 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Aug 23, 2015

Migrated from rt.perl.org#125872 (status was 'resolved')

Searchable as RT125872$

@p6rt
Copy link
Author

p6rt commented Aug 23, 2015

From @labster

DateTime.new('2015-08-23t02​:27​:33-07​:00')
Invalid DateTime string '2015-08-23t02​:27​:33-07​:00'; use an ISO 8601
timestamp (yyyy-mm-ddThh​:mm​:ssZ or yyyy-mm-ddThh​:mm​:ss+01​:00) instead

However, RFC 3339 points out that ISO 8601 allows lowercase t and z,
because ABNF is case-insensitive​:
http://tools.ietf.org/html/rfc3339#section-5.6

@p6rt
Copy link
Author

p6rt commented Aug 29, 2015

From @coke

On Sun Aug 23 02​:40​:15 2015, labster wrote​:

DateTime.new('2015-08-23t02​:27​:33-07​:00')
Invalid DateTime string '2015-08-23t02​:27​:33-07​:00'; use an ISO 8601
timestamp (yyyy-mm-ddThh​:mm​:ssZ or yyyy-mm-ddThh​:mm​:ss+01​:00) instead

However, RFC 3339 points out that ISO 8601 allows lowercase t and z,
because ABNF is case-insensitive​:
http://tools.ietf.org/html/rfc3339#section-5.6

Passing tests added to S32-temporal/DateTime.t

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Aug 29, 2015

The RT System itself - Status changed from 'new' to 'open'

@p6rt p6rt closed this as completed Aug 29, 2015
@p6rt
Copy link
Author

p6rt commented Aug 29, 2015

@coke - Status changed from 'open' to 'resolved'

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

1 participant