vworld4u wrote:
> I am facing an issue with Android's Calendar API. When I get a
> Calendar instance with Calendar.getInstance(TimeZone) method with a
> Timezone other than the default time zone of the emulator/device, the
> returned calendar still has the default timezone. For example, my
> default timezone of India (GMT+5.30), and I get a calendar instance
> with time zone of US (GMT-700) I always get time of default time zone
> when I call getTime() or get default time zone when I call
> getTimeZone() method of calendar instance.

You need to tell the emulator what time zone you are in, by passing the 
-timezone switch (e.g., -timezone "America/New_York")

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com

Android Training on the Ranch! -- Mar 16-20, 2009
http://www.bignerdranch.com/schedule.shtml

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to