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 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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user