[Osaas-commits] r29 - in trunk: . client/java/src/de/intevation/osaas

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Aug 29 18:37:56 CEST 2007


Author: bh
Date: 2007-08-29 18:37:56 +0200 (Wed, 29 Aug 2007)
New Revision: 29

Modified:
   trunk/ChangeLog
   trunk/client/java/src/de/intevation/osaas/OSAASClient.java
Log:
* client/java/src/de/intevation/osaas/OSAASClient.java: Make sure
the timestamps are in UTC


Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2007-08-29 15:42:22 UTC (rev 28)
+++ trunk/ChangeLog	2007-08-29 16:37:56 UTC (rev 29)
@@ -1,5 +1,10 @@
 2007-08-29  Bernhard Herzog  <bh at intevation.de>
 
+	* client/java/src/de/intevation/osaas/OSAASClient.java: Make sure
+	the timestamps are in UTC
+
+2007-08-29  Bernhard Herzog  <bh at intevation.de>
+
 	* server/adduser.py, server/initosaasdb.py,
 	server/osaas/__init__.py, server/osaas/config.py,
 	server/osaas/dbbackend.py, server/osaas/dbinit.py,

Modified: trunk/client/java/src/de/intevation/osaas/OSAASClient.java
===================================================================
--- trunk/client/java/src/de/intevation/osaas/OSAASClient.java	2007-08-29 15:42:22 UTC (rev 28)
+++ trunk/client/java/src/de/intevation/osaas/OSAASClient.java	2007-08-29 16:37:56 UTC (rev 29)
@@ -21,9 +21,10 @@
 import java.net.HttpURLConnection;
 import java.net.URL;
 import java.net.URLEncoder;
+import java.util.Calendar;
 import java.util.GregorianCalendar;
+import java.util.TimeZone;
 
-
 public class OSAASClient {
 
     private URL osaasURL;
@@ -58,7 +59,8 @@
     }
 
     private String getTimestamp() {
-        return String.format("%1$tFT%1$tTZ", new GregorianCalendar());
+        Calendar now = new GregorianCalendar(TimeZone.getTimeZone("GMT"));
+        return String.format("%1$tFT%1$tTZ", now);
     }
 
     private void logFailedRequest(String request) {



More information about the Osaas-commits mailing list