*/
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.*;
setProperty(property, jalview.util.Format.getHexString(colour));
}
- public static final DateFormat date_format = SimpleDateFormat
- .getDateTimeInstance();
+ public static final DateFormat date_format = DateFormat.getDateInstance(DateFormat.LONG,MessageManager.getLocale());
/**
* store a date in a jalview property
java.util.Date earliest = null;
try
{
- earliest = new SimpleDateFormat("YYYY-MM-DD").parse(chan
+ earliest = new SimpleDateFormat("YYYY-MM-DD",MessageManager.getLocale()).parse(chan
.getHTTPLastModified());
} catch (Exception x)
{
Item item = (Item) value;
if (item.getPublishDate() != null)
{
- component.setText(MessageManager.formatMessage("label.blog_item_published_on_date", new String[]{DateFormat.getDateInstance().format(item.getPublishDate()).toString(),item.getTitle()}));
+ component.setText(MessageManager.formatMessage("label.blog_item_published_on_date", new String[]{DateFormat.getDateInstance(DateFormat.LONG, MessageManager.getLocale()).format(item.getPublishDate()).toString(),item.getTitle()}));
}
component.setToolTipText(item.getLink());
if (!item.isRead())