Author: jflesch
Date: 2007-07-29 21:05:09 +0000 (Sun, 29 Jul 2007)
New Revision: 14432

Modified:
   trunk/apps/Thaw/src/thaw/plugins/miniFrost/frostKSK/KSKDraft.java
   trunk/apps/Thaw/src/thaw/plugins/miniFrost/frostKSK/KSKMessage.java
   trunk/apps/Thaw/src/thaw/plugins/miniFrost/frostKSK/KSKMessageParser.java
Log:
Don't convert the time to GMT to know what key to fetch, it creates more 
troubles than it solves

Modified: trunk/apps/Thaw/src/thaw/plugins/miniFrost/frostKSK/KSKDraft.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/miniFrost/frostKSK/KSKDraft.java   
2007-07-29 20:51:34 UTC (rev 14431)
+++ trunk/apps/Thaw/src/thaw/plugins/miniFrost/frostKSK/KSKDraft.java   
2007-07-29 21:05:09 UTC (rev 14432)
@@ -156,7 +156,7 @@

        private String getKey(Date date, int rev) {
                java.text.SimpleDateFormat formatter = new 
java.text.SimpleDateFormat("yyyy.M.d");
-               formatter.setTimeZone(java.util.TimeZone.getTimeZone("GMT"));
+               //formatter.setTimeZone(java.util.TimeZone.getTimeZone("GMT"));

                StringBuffer keyBuf = new StringBuffer(KSKMessage.KEY_HEADER);


Modified: trunk/apps/Thaw/src/thaw/plugins/miniFrost/frostKSK/KSKMessage.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/miniFrost/frostKSK/KSKMessage.java 
2007-07-29 20:51:34 UTC (rev 14431)
+++ trunk/apps/Thaw/src/thaw/plugins/miniFrost/frostKSK/KSKMessage.java 
2007-07-29 21:05:09 UTC (rev 14432)
@@ -71,7 +71,7 @@
                downloading = true;

                java.text.SimpleDateFormat formatter = new 
java.text.SimpleDateFormat("yyyy.M.d");
-               formatter.setTimeZone(java.util.TimeZone.getTimeZone("GMT"));
+               //formatter.setTimeZone(java.util.TimeZone.getTimeZone("GMT"));

                StringBuffer keyBuf = new StringBuffer("KSK@"+KEY_HEADER);

@@ -283,7 +283,7 @@

        protected Vector parseMessage(final String fullMsg) {
                SimpleDateFormat sdf = new SimpleDateFormat("yyyy.MM.dd - 
HH:mm:ss");
-               sdf.setTimeZone(java.util.TimeZone.getTimeZone("GMT"));
+               //sdf.setTimeZone(java.util.TimeZone.getTimeZone("GMT"));

                Vector v = new Vector();


Modified: 
trunk/apps/Thaw/src/thaw/plugins/miniFrost/frostKSK/KSKMessageParser.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/miniFrost/frostKSK/KSKMessageParser.java   
2007-07-29 20:51:34 UTC (rev 14431)
+++ trunk/apps/Thaw/src/thaw/plugins/miniFrost/frostKSK/KSKMessageParser.java   
2007-07-29 21:05:09 UTC (rev 14432)
@@ -370,7 +370,7 @@

                } catch(Exception e) {
                        /* XMLTools throws runtime exception sometimes ... */
-                       Logger.warning(this, "Unable to parse XML message 
because : "+e.toString());
+                       Logger.notice(this, "Unable to parse XML message 
because : "+e.toString());
                        e.printStackTrace();
                        return false;
                }


Reply via email to