posted 13 years ago
Hi All,
Day light savings happened from 14-March. I tested my code and found that the day light savings change did not take place and it showed the wrong time.
Iam in India and using IST. i try to convert IST time to CST and it was working fine. I used TimeZone.set and getTimeZone. Now after the day light savings it should work and return the new date and time according to the day light savings. but iam not getting the expected output.
This is my code:
I have set the source time to 8:30 PM IST and the expected output is 10:00 AM CST (as there is a change due to day light savings).
Before day light savings the expected output was 9.00 AM CST(it worked perfect).
In API it is mentioned that TimeZone represents a time zone offset and also figures out daylight savings. So i thought it will take care of daylight savings automatically.
Now iam not getting that day light savings change in time. What should i do for this?
I googled and not able to find a proper solution. My app shows wrong time from today because of day light savings change. Please advise.