article: use shorter date

This commit is contained in:
Andrew Dolgov 2013-05-23 14:53:16 +04:00
parent e3575f6be8
commit 64c9467534
2 changed files with 4 additions and 2 deletions

View File

@ -3,6 +3,7 @@ package org.fox.ttrss;
import java.net.MalformedURLException; import java.net.MalformedURLException;
import java.net.URI; import java.net.URI;
import java.net.URL; import java.net.URL;
import java.text.DateFormat;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.Date; import java.util.Date;
@ -306,7 +307,7 @@ public class ArticleFragment extends Fragment implements GestureDetector.OnDoubl
if (dv != null) { if (dv != null) {
Date d = new Date(m_article.updated * 1000L); Date d = new Date(m_article.updated * 1000L);
SimpleDateFormat df = new SimpleDateFormat("EEE, dd MMM yyyy, HH:mm"); DateFormat df = new SimpleDateFormat("MMM dd, HH:mm");
dv.setText(df.format(d)); dv.setText(df.format(d));
} }

View File

@ -2,6 +2,7 @@ package org.fox.ttrss.offline;
import java.net.URI; import java.net.URI;
import java.net.URL; import java.net.URL;
import java.text.DateFormat;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.Date; import java.util.Date;
@ -264,7 +265,7 @@ public class OfflineArticleFragment extends Fragment implements GestureDetector.
if (dv != null) { if (dv != null) {
Date d = new Date(m_cursor.getInt(m_cursor.getColumnIndex("updated")) * 1000L); Date d = new Date(m_cursor.getInt(m_cursor.getColumnIndex("updated")) * 1000L);
SimpleDateFormat df = new SimpleDateFormat("EEE, dd MMM yyyy, HH:mm"); DateFormat df = new SimpleDateFormat("MMM dd, HH:mm");
dv.setText(df.format(d)); dv.setText(df.format(d));
} }