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

StringToDate doesn't parse all common RFC 3339 strings #67

Closed
raehik opened this issue Oct 21, 2018 · 0 comments
Closed

StringToDate doesn't parse all common RFC 3339 strings #67

raehik opened this issue Oct 21, 2018 · 0 comments

Comments

@raehik
Copy link
Contributor

raehik commented Oct 21, 2018

Redirected from Hugo issue gohugoio/hugo#5340 .

2006-01-02T15:04:05-0700 is a valid RFC 3339 date which is not successfully parsed by cast. Obviously we shouldn't be expected to parse every single date format on the planet, or even all the various RFC 3339 formats. strftime however can only output its timezone in ±hhmm format, so the omitted colon form is relatively common.

It's a trivial change, so I may make an associated PR.

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

2 participants