• DST Fix

    By Diego Grasso 1 decade ago

    I replaced the funtion convNotesDateTimeToXS on GooCalUtil.java by the following. Maybe not the best code, but it works for me, at least Notes to Google. Test it!



    public static String convNotesDateTimeToXS(lotus.domino.DateTime org) {


                 try {<br/>
                         SimpleDateFormat dateFormatXsTZ = new SimpleDateFormat(&quot;Z&quot;);              <br/>
                         SimpleDateFormat dateFormatXs = new<br/>
    

    SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");

                 <br/>
                         return dateFormatXs.format(org.toJavaDate())+dateFormatXsTZ.format(org.toJavaDate()).substring(0,3)+&quot;:&quot;+dateFormatXsTZ.format(org.toJavaDate()).substring(3,5);<br/>
                         <br/>
                 } catch (NotesException e) {<br/>
                         e.printStackTrace();<br/>
                         GooCalUtil.logStackTrace(e);<br/>
                         System.exit(-1);<br/>
                 }<br/>
                 <br/>
                 return null;<br/>
                }