Skip to content

Localization of date should not be order-dependent #289

@HaleyHalcyon

Description

@HaleyHalcyon

Checklist

  • I can reproduce the bug with the latest version given here.
  • I made sure that there are no existing issues - open or closed - to which I could contribute my information.
  • I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
  • I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.

Affected app version

1.3.1

Affected Android/Custom ROM version

Android 15, stock

Affected device model

Motorola Moto g64

How did you install the app?

F-Droid / IzzyOnDroid

Steps to reproduce the bug

  1. Set app locale to Japanese (or system locale, failing that)
  2. Navigate to home screen or add a widget

Expected behavior

In Japanese, the date string should be M月D日(ddd), without spaces, where ddd is the single-letter weekday abbreviation.

The stock app shows this (Sunday, September 21 → 9月21日(日)).
ignoreImageMinify

Actual behavior

Fossify Clock says “日, 21 9月”, which is nonsense in Japanese. It’s probably the result of reusing the British English template ddd, D M instead of the appropriate localized format.

Image

This is expressly against Android’s API reference!

Most callers should avoid supplying their own format strings to this class' format methods and rely on the correctly localized ones supplied by the system. This class' factory methods return appropriately-localized DateFormat instances, suitable for both formatting and parsing dates. For the canonical documentation of format strings, see SimpleDateFormat.

Screenshots/Screen recordings

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is not workingi18nThis issue or pull request is about internationalization

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions