Ok, I identified the problem. It was a silly one. The time was being fetched from network instead of local OS. I could change the time in Date and Time settings. To my surprise, there is no option to get the time from local OS. However, I am more surprised not to receive a single reply of this post telling the simple solution!
On Mar 10, 12:43 pm, Farhan <[email protected]> wrote: > On Mar 10, 12:12 am, Farhan <[email protected]> wrote: > > > Hello, > > > My timezone is C.S.T. in U.S., so it has a raw offset of -6 from GMT > > and as of today it should be -5 as DST has started. But both the > > getRawOffset() and getOffset() methods are returning 0. Can anyone > > tell me why this is happening and how it can be corrected? > > > Thanks. > > I am using android-sdk-windows-1.1_r1. I am also facing another > problemGregorianCalendarclass. When I do a newGregorianCalendar(), > it returns me HOUR_OF_DAY 5 plus the actual hour. If anyone could help > me to resolve these issues it would be great for me. > > Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

