Bug fix for DateUtils not working as documented
This commit is contained in:
parent
39c38ca0fa
commit
2c5248aebb
@ -28,8 +28,7 @@ import java.util.Date;
|
|||||||
public class MetaDataHelper {
|
public class MetaDataHelper {
|
||||||
|
|
||||||
public static String getMetaString(Date getCreatedAt, Integer viewCount, Context context) {
|
public static String getMetaString(Date getCreatedAt, Integer viewCount, Context context) {
|
||||||
return DateUtils.
|
return (DateUtils.getRelativeTimeSpanString(context,getCreatedAt.getTime(),false).toString() +
|
||||||
getRelativeTimeSpanString(getCreatedAt.getTime()).toString() +
|
|
||||||
context.getResources().getString(R.string.meta_data_seperator) +
|
context.getResources().getString(R.string.meta_data_seperator) +
|
||||||
viewCount + context.getResources().getString(R.string.meta_data_views);
|
viewCount + context.getResources().getString(R.string.meta_data_views);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user