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

DateTimeZone.UtcId should probably not be public #64

Closed
GoogleCodeExporter opened this Issue Mar 15, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@GoogleCodeExporter

GoogleCodeExporter commented Mar 15, 2015

We've defined the UTC timezone ID as "UTC".  It seems odd to provide a public 
constant for that as well, since it's not as if we can change it.

DateTimeZone.UtcId is used by e.g. FixedDateTimeZone, so it should probably be 
retained, but internal (or, better, protected internal, so that someone can 
easily create a 'new' UTC timezone).

Original issue reported on code.google.com by malcolm.rowe on 18 Apr 2012 at 9:34

@GoogleCodeExporter

This comment has been minimized.

Show comment
Hide comment
@GoogleCodeExporter

GoogleCodeExporter Mar 15, 2015

Right - will make it internal. If anyone needs it from code they can always get 
it from DateTimeZone.Utc.Id.

Original comment by jonathan.skeet on 18 Apr 2012 at 6:48

GoogleCodeExporter commented Mar 15, 2015

Right - will make it internal. If anyone needs it from code they can always get 
it from DateTimeZone.Utc.Id.

Original comment by jonathan.skeet on 18 Apr 2012 at 6:48

@GoogleCodeExporter

This comment has been minimized.

Show comment
Hide comment
@GoogleCodeExporter

GoogleCodeExporter Mar 15, 2015

Fixed in revision 71974e086415.

Original comment by jonathan.skeet on 18 Apr 2012 at 6:55

  • Changed state: Fixed

GoogleCodeExporter commented Mar 15, 2015

Fixed in revision 71974e086415.

Original comment by jonathan.skeet on 18 Apr 2012 at 6:55

  • Changed state: Fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment