Use Calendar and TimeZone classes to convert timezones to and fro.
On Jul 19, 5:44 am, Cheng Zhong <[email protected]> wrote: > Hi all, > > What will Date.getTime() returns in a region with Daylight Saving Time > enabled? > > Does this function returns a DST time or not? > > I call Date.getTime() in a place with DST (such as U.S.), and convert > it to a local time in China (no DST), I get a wrong time (one hour > ahead of local time in China). How can I fixed this problem? > > Maybe I didn't tell tings clearly, but we don't use DST in China... I > don't understand DST very well. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

