X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fibex%2Fmail%2Fprotocol%2FNNTP.java;h=6d441e77a5aa4c4d2af2c20c96ee1d80ed9c49fb;hb=5ba029eb8467b22e33db3dcabd9f29380a8cd9a3;hp=bbe4ca72b13739299228fe0eaec8bb07b43aff97;hpb=a8dfe1ff2aa8f996a21890e71cd9bc87289b59db;p=org.ibex.mail.git diff --git a/src/org/ibex/mail/protocol/NNTP.java b/src/org/ibex/mail/protocol/NNTP.java index bbe4ca7..6d441e7 100644 --- a/src/org/ibex/mail/protocol/NNTP.java +++ b/src/org/ibex/mail/protocol/NNTP.java @@ -225,12 +225,13 @@ public class NNTP { String groups = command.equals("NEWNEWS") ? st.nextToken() : null; String datetime = st.nextToken() + " " + st.nextToken(); String gmt = st.nextToken(); - String distributions = gmt.equals("GMT") ? (st.hasMoreTokens() ? st.nextToken() : null) : gmt; + String distributions = gmt.equals("GMT") ? (st.hasMoreTokens() ? st.nextToken() : "") : gmt; while(st.hasMoreTokens()) distributions += " " + st.nextToken(); + // FIXME deal with GMT Date d = new Date(); try { - d = new SimpleDateFormat("yyMMDD HHMMSS").parse(gmt); + d = new SimpleDateFormat("yyMMDD HHMMSS").parse(datetime); } catch (ParseException pe) { Log.warn(this, pe); }