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

Parsable standard formats for ZonedDateTimePattern #277

Closed
GoogleCodeExporter opened this issue Mar 15, 2015 · 1 comment
Closed

Parsable standard formats for ZonedDateTimePattern #277

GoogleCodeExporter opened this issue Mar 15, 2015 · 1 comment
Labels
Milestone

Comments

@GoogleCodeExporter
Copy link

@GoogleCodeExporter GoogleCodeExporter commented Mar 15, 2015

Currently we have the "G" and "F" standard patterns for ZonedDateTime, but they 
don't allow parsing - because they use 
ZonedDateTime.GeneralFormatOnlyIsoPattern and 
ZonedDateTime.ExtendedFormatOnlyIsoPattern, which don't know which time zone 
provider to use.

However, they could easily be tweaked such that if a time zone provider *is* 
available, we use it. So then we could use:

    var pattern = ZonedDateTimePattern.CreateWithInvariantCulture("F", DateTimeZoneProviders.Bcl);

for example.

Original issue reported on code.google.com by jonathan.skeet on 12 Apr 2014 at 8:00

@GoogleCodeExporter
Copy link
Author

@GoogleCodeExporter GoogleCodeExporter commented Mar 15, 2015

This issue was closed by revision 995f2844508a.

Original comment by jonathan.skeet on 12 Apr 2014 at 8:26

  • Changed state: Fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants