On Apr 23, 7:14 am, "A.TNG" <tang.j...@gmail.com> wrote: > TimeZone.getDefault().getOffset(0); // returns 36000000 (= 10 * 60 * 60 * > 1000) > TimeZone.getTimeZone("GMT-9:00").getOffset(0); // returns 32400000 (= > 9 * 60 * 60 * 1000) > > How does this happen? Why this same API getOffset with same parameter > returns different value?
Simple: it's not the same parameter. The default TimeZone includes DST, but when you explicitly specify GMT-9:00, that doesn't include DST. String -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en