Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: /openpsa/addons/funambol/src/java/org/openpsa/sync4j/CalendarSyncSource.java

openpsa
Discussion topic

Back to topic list

CVS update: /openpsa/addons/funambol/src/java/org/openpsa/sync4j/CalendarSyncSource.java

Author juhana
Full name Juhana Hirvilahti
Date 2007-03-02 05:38:10 PST
Message User: juhana
Date: 2007-03-02 05:38:10-0800
Log:
 Cleaning up

File Changes:

Directory: /openpsa/addons/funa​mbol/src/java/org/op​enpsa/sync4j/
====================​====================​====================​====

File [changed]: CalendarSyncSource.java
Url: http://openpsa.tigri​s.org/source/browse/​openpsa/addons/funam​bol/src/java/org/ope​npsa/sync4j/Calendar​SyncSource.java?r1=1​.145&r2=1.146
Delta lines: +4 -16
--------------------
--- CalendarSyncSource.java 2007-03-02 05:05:29-0800 1.145
+++ CalendarSyncSource.java 2007-03-02 05:38:07-0800 1.146
@@ -98,7 +98,7 @@
         
             return new Timestamp(date.getTime() - (utilCal.get(java.ut​il.Calendar.ZONE_OFF​SET) - utilCal.get(java.uti​l.Calendar.DST_OFFSE​T)));
         
- /*
+ /* This does it wrong
         TimeZone zone = TimeZone.getDefault();
         return new Timestamp(date.getTime() - zone.getRawOffset() - zone.getDSTSavings());
      */
@@ -114,7 +114,7 @@
         
             return new Date(timestamp.getTime() + (utilCal.get(java.ut​il.Calendar.ZONE_OFF​SET) + utilCal.get(java.uti​l.Calendar.DST_OFFSE​T)));
         
- /*
+ /* This does it wrong
         TimeZone zone = TimeZone.getDefault();
         return new Date(timestamp.getTime() + zone.getRawOffset() + zone.getDSTSavings());
         */
@@ -134,18 +134,7 @@
             ps.setTimestamp(2, utcHack(since));
             ResultSet rs = ps.executeQuery();
             try {
- try{
- // Create file
- FileWriter fstream = new FileWriter("ex2.txt");
- BufferedWriter out = new BufferedWriter(fstream);
- out.write("Since: " + since.toString());
- out.write("Hack: " + utcHack(since).toString());
- out.write("UnHack: " + utcUnhack(utcHack(si​nce)).toString());
- //Close the output stream
- out.close();
- }catch (Exception e){//Catch exception if any
- System.err.println("Error: " + e.getMessage());
- }
+
                 Set guids = new HashSet();
                 while (rs.next()) {
                     
@@ -455,7 +444,6 @@
                     insert.close();
                 }
                 if (mid > 0) {
- //create(user, "eventmember", mid, time);
                     
                     String mGuid = create(user, "eventmember", mid, time);

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: /openpsa/addons/funambol/src/java/org/openpsa/sync4j/CalendarSyncSource.java juhana Juhana Hirvilahti 2007-03-02 05:38:10 PST
Messages per page: