[android-developers] Re: GregorianCalendar.getOffset() returning 0

2009-03-15 Thread Farhan
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 pos

[android-developers] Re: GregorianCalendar.getOffset() returning 0

2009-03-10 Thread Farhan
On Mar 10, 12:12 am, Farhan 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 c