JAL-1448 reinstate non-locale sensitive code for reading/writing last read date from...
authorJim Procter <jprocter@compbio.dundee.ac.uk>
Fri, 21 Feb 2014 15:06:23 +0000 (15:06 +0000)
committerJim Procter <jprocter@compbio.dundee.ac.uk>
Fri, 21 Feb 2014 15:06:23 +0000 (15:06 +0000)
src/jalview/bin/Cache.java
src/jalview/gui/BlogReader.java

index 2dfeb51..b07593d 100755 (executable)
  */
 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
index da92179..8326e35 100644 (file)
@@ -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)
     {