artiya4u / google-http-java-client

Automatically exported from code.google.com/p/google-http-java-client
0 stars 0 forks source link

new DateTime(Date) should use TimeZone.getDefault() [backwards incompatible] #155

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
External references, such as a standards document, or specification?

http://tools.ietf.org/html/rfc3339#section-4.4

http://tools.ietf.org/html/rfc3339#section-5.6

http://javadoc.google-http-java-client.googlecode.com/hg/1.11.0-beta/com/google/
api/client/util/DateTime.html

Java environments (e.g. Java 6, Android 2.3, App Engine, or All)?

All

Please describe the feature requested.

If you construct a DateTime for a time without a TimeZone, calling 
toStringRfc3339 results in a string that is not compliant with the RFC 3339 
specification.  Instead, if we don't have a timezone and we are specifying a 
time (ie not the date-only form), then we should use TimeZone.getDefault() as 
the TimeZone.  Note that this is technically a breaking change in 
implementation.

Original issue reported on code.google.com by yan...@google.com on 8 Oct 2012 at 9:53

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 24 Oct 2012 at 5:37

GoogleCodeExporter commented 9 years ago
Fixed by 
http://code.google.com/p/google-http-java-client/source/detail?r=7d72421fecaef76
3bcf7879e8617f5d5393d99c1

Original comment by ngmic...@google.com on 13 Nov 2012 at 9:05

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 21 Nov 2012 at 1:31