mastodon-android icon indicating copy to clipboard operation
mastodon-android copied to clipboard

Date format of post should be localized

Open Xabellee opened this issue 2 years ago • 2 comments

For example, in Japanese the month precedes the day, but the app does not. Screenshot_20220722-222939~3 the date of this post should be displayed as 5月4日 which means 4 May.

Xabellee avatar Jul 22 '22 14:07 Xabellee

I think I added a string with placeholders for date format for this exact reason, but I'll check

grishka avatar Jul 22 '22 14:07 grishka

I think I added a string with placeholders for date format for this exact reason, but I'll check

It seems that the date format is hardcoded in mastodon/src/main/java/org/joinmastodon/android/ui/utils/UiUtils.java

private static final DateTimeFormatter DATE_FORMATTER_SHORT_WITH_YEAR=DateTimeFormatter.ofPattern("d MMM uuuu"), DATE_FORMATTER_SHORT=DateTimeFormatter.ofPattern("d MMM");

Xabellee avatar Sep 15 '22 14:09 Xabellee