axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prest...@apache.org
Subject svn commit: r394905 - /webservices/axis/trunk/c/tests/utils/monitor/org/apache/test/MockServerThread.java
Date Tue, 18 Apr 2006 10:28:51 GMT
Author: prestonf
Date: Tue Apr 18 03:28:48 2006
New Revision: 394905

URL: http://svn.apache.org/viewcvs?rev=394905&view=rev
Log:
Modification to monitor to take account of time changes for daylight saving time (i.e. when
##TIME## appears in the expected output file).

Modified:
    webservices/axis/trunk/c/tests/utils/monitor/org/apache/test/MockServerThread.java

Modified: webservices/axis/trunk/c/tests/utils/monitor/org/apache/test/MockServerThread.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/utils/monitor/org/apache/test/MockServerThread.java?rev=394905&r1=394904&r2=394905&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/utils/monitor/org/apache/test/MockServerThread.java (original)
+++ webservices/axis/trunk/c/tests/utils/monitor/org/apache/test/MockServerThread.java Tue
Apr 18 03:28:48 2006
@@ -274,7 +274,8 @@
             // Recalculate time for local offset
             Calendar calendar = format.getCalendar();
             Date date = calendar.getTime();
-            date.setTime(date.getTime() - calendar.getTimeZone().getRawOffset());
+//            date.setTime(date.getTime() - calendar.getTimeZone().getRawOffset());
+            date.setTime(date.getTime() - calendar.getTimeZone().getOffset(date.getTime()));
 
             // Create new string to be placed in response
             format.applyPattern("HH:mm:ss'.000Z'");



Mime
View raw message