Oracle Weblogic Server (MOSC)

MOSC Banner

Date conversion problem on Daylight Saving day

edited Mar 21, 2012 6:42AM in Oracle Weblogic Server (MOSC) 2 commentsAnswered
Hi,

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:

@WebMethod()

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)

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center