You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by pr...@apache.org on 2006/04/18 12:28:51 UTC

svn commit: r394905 - /webservices/axis/trunk/c/tests/utils/monitor/org/apache/test/MockServerThread.java

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'");