mirror of
https://github.com/nextcloud/notes-android.git
synced 2024-11-24 05:46:14 +03:00
Show relative modified Date on ListView
This commit is contained in:
parent
5ba881c783
commit
848ccfd316
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ public class NoteAdapter extends ArrayAdapter<Note> {
|
|||
|
||||
noteTitle.setText(note.getTitle());
|
||||
noteExcerpt.setText(note.getExcerpt());
|
||||
noteModified.setText(DateUtils.getRelativeTimeSpanString(getContext(), note.getModified().getTimeInMillis()));
|
||||
noteModified.setText(DateUtils.getRelativeDateTimeString(getContext(), note.getModified().getTimeInMillis(), DateUtils.MINUTE_IN_MILLIS, DateUtils.WEEK_IN_MILLIS, 0));
|
||||
}
|
||||
|
||||
// the view must be returned to our activity
|
||||
|
|
Loading…
Reference in a new issue