Bug fix for DateUtils not working as documented

This commit is contained in:
dhk2 2020-07-03 21:41:35 -07:00
parent 39c38ca0fa
commit 2c5248aebb

View File

@ -28,8 +28,7 @@ import java.util.Date;
public class MetaDataHelper {
public static String getMetaString(Date getCreatedAt, Integer viewCount, Context context) {
return DateUtils.
getRelativeTimeSpanString(getCreatedAt.getTime()).toString() +
return (DateUtils.getRelativeTimeSpanString(context,getCreatedAt.getTime(),false).toString() +
context.getResources().getString(R.string.meta_data_seperator) +
viewCount + context.getResources().getString(R.string.meta_data_views);
}