Date conversion problem on Daylight Saving day
I have found a strange problem on the daylight saving days (Pacific Standard/Daylight Saving Time) related to java.util.Date used in our JWS web services running on WebLogic 10.3. I did a very simple test method like below:
public Date testDateToDate( Date aDate )
{
return Date;
}
When testing through WebLogic Test Client, I have found out the following results which confuse me.
Entered: 2012-03-11T01:00:00, returned 2012-03-11T01:00:00-08:00 (correct)
Entered: 2012-03-11T02:00:00, returned 2012-03-11T03:00:00-07:00 (correct)
Entered: 2012-03-11T03:00:00, returned 2012-03-11T04:00:00-07:00 (wrong)
Entered: 2012-03-11T03:00:00, returned 2012-03-11T04:00:00-07:00 (wrong)