From: Jim Procter Date: Fri, 21 Feb 2014 15:06:23 +0000 (+0000) Subject: JAL-1448 reinstate non-locale sensitive code for reading/writing last read date from... X-Git-Tag: Jalview_2_9~205^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=32bca9b301bdd04464e2da41d867f66c4d38a63d;p=jalview.git JAL-1448 reinstate non-locale sensitive code for reading/writing last read date from RSS and Jalview preferences --- diff --git a/src/jalview/bin/Cache.java b/src/jalview/bin/Cache.java index 2dfeb51..b07593d 100755 --- a/src/jalview/bin/Cache.java +++ b/src/jalview/bin/Cache.java @@ -18,13 +18,13 @@ */ package jalview.bin; -import jalview.util.MessageManager; import jalview.ws.dbsources.das.api.DasSourceRegistryI; import jalview.ws.dbsources.das.datamodel.DasSourceRegistry; import java.awt.Color; import java.io.*; import java.text.DateFormat; +import java.text.SimpleDateFormat; import java.util.*; import org.apache.log4j.*; @@ -781,7 +781,8 @@ public class Cache setProperty(property, jalview.util.Format.getHexString(colour)); } - public static final DateFormat date_format = DateFormat.getDateInstance(DateFormat.LONG,MessageManager.getLocale()); + public static final DateFormat date_format = SimpleDateFormat + .getDateTimeInstance(); /** * store a date in a jalview property diff --git a/src/jalview/gui/BlogReader.java b/src/jalview/gui/BlogReader.java index da92179..8326e35 100644 --- a/src/jalview/gui/BlogReader.java +++ b/src/jalview/gui/BlogReader.java @@ -352,7 +352,7 @@ public class BlogReader extends JPanel java.util.Date earliest = null; try { - earliest = new SimpleDateFormat("YYYY-MM-DD",MessageManager.getLocale()).parse(chan + earliest = new SimpleDateFormat("YYYY-MM-DD").parse(chan .getHTTPLastModified()); } catch (Exception x) {