Hi all,
I have a problem related to the Daylight saving. It is a code which executes at a particular time say 12.30 CET every week. Normally the daylight start in Netherland in October last sunday. for eg: take the case like this:
The Daylight saving starts on 29th of Oct'05. This part of the code executes every week at 12.30 CEST or CET(Even if it is daylight saving it excecutes at 12.30) normaly. On 26th it has executed successfully on at 12.30 CEST. So the next execution time is next week i.e 2nd Nov'05. I monitor the next execution time every day and i keep track of the time every day till the next execution.
Here the real problem starts:
After the 26th oct execution at 12.30 CEST...The monitor for the next execution shows that the next execution time as 13.30 CET which is wrong.It has to be normally 12.30 CEt even if it is the Daylight. And the beauty is again on the 30th Oct'05 it again changes the execution time one hour ahead to 14.30 CET and it executes at 14.30 CET on 2nd NOV..again the beauty is..after the execution on 2nd NOV at 14.30 it again changes the time to 12.30 for next execution.
I use GregorianCalendar...please help me to solve the problem logically. Is there any problem with the Gregorian Calendar in
java?