# fix\(i18n\): format displayed times in the user's regional format \(\#430\) · lucenx/codexbar-plasma

[View on GitCafe](https://git.cafe/lucenx/codexbar-plasma/commit/943dc2fa5f472effbe1ea0e7b4ee5fd46e73b090)

Repository: [lucenx/codexbar-plasma](https://git.cafe/lucenx/codexbar-plasma)

Visibility: public

Requested revision: 943dc2fa5f472effbe1ea0e7b4ee5fd46e73b090

Requested commit: 943dc2fa5f472effbe1ea0e7b4ee5fd46e73b090

Commit: 943dc2fa5f472effbe1ea0e7b4ee5fd46e73b090

Tree: d190848330e974449e458272e408d616dd3b20f7

Author: Simone

Committer: GitHub

## Message

```
fix(i18n): format displayed times in the user's regional format (#430)

* fix(i18n): format displayed times in the user's regional format

Qt.formatDateTime with a literal pattern always writes English day and month
names and a fixed hour cycle, so absolute reset times read "Wed 14:30" or
"Oct 7, 14:30" in every language and "Updated" times ignored a 12-hour
regional clock. A small TimeLabels component now owns every displayed clock
time and short date, takes names and the hour cycle from the regional format,
and lets each translation order the parts.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(i18n): omit seconds from regional short clock times

C locale ShortFormat is HH:mm:ss, which broke absolute-reset tests that
expect HH:mm and would show seconds on compact Updated/reset labels.
Keep the locale's 12/24-hour cycle but strip seconds from the short form.

---------

Co-authored-by: Simone <185146821+Lucenx9@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: Grok Bot <grok-bot@users.noreply.github.com>
```

## Parents

- [7026120cfaf58c0b779828f3bb6092fccf99112d](https://git.cafe/lucenx/codexbar-plasma/commit/7026120cfaf58c0b779828f3bb6092fccf99112d?format=markdown)

[Source at this commit](https://git.cafe/lucenx/codexbar-plasma/tree/943dc2fa5f472effbe1ea0e7b4ee5fd46e73b090?format=markdown)
