• rssfeed field too small & timezone offset

    By thomas kuhn 2 decades ago

    Bug: Feeds larger than 32k result in (not logged) error, due to text field size limit of 32k. On error content is not stored in RSSFeed field

      Fix: Changed field RSSFeed to richtext field.<br/>
    



    Bug: Date format was US style and therefore not interpreted correctly by parsing string into NotesDateTime object, when Notes running on german os (resulted in month parsed as day and vice versa).

       Fix: First added time offset to return value of convertDate() in RSSLib. Second changed offset substring start to 19 (20 resulted in missing character). Then we parse the return string into a SimpleDateFormat with the pattern &quot;MM/dd/yyyy HH:mm:ss z&quot; and from the resulting java.Date object we create a NotesDateTime object which is now correctly formatted and contains correct time.For feed dates containing the Z (Zulu Time) flag, we change that in the convertDate function into &quot;GMT&quot; so it is parsed correct (zulu time is equivalent to gmt, but cannot be read by SimpleDateFormat.parse method). Additionaly we catch the ParseException which could be thrown by SimpleDateFormat.parse method and write current system date/time into feeds date.<br/>
    





    actual fixing was done by my developer matthias stoll. (i just have the openntf account :-)) )

    • Thank you!!! Can I incorporate code into reader?

      By Lance Spellman 2 decades ago

      If you'd like to send me the code I will put it into the template and update it. I don't know why I didn't see this comment in here before. It totally escaped me.



      Thx.



      Lance