Proof Portal

Project overview

Omarchy

ProbeLabs65 findings · 95 requirements

A proof layer — requirements, tests and verified fixes — for two of Omarchy's subsystems: the application menu (launcher scripts, QML model, JSONC config, search and selection) and the lock screen (lock scripts, QML, PAM authentication). Scope is deliberately limited to those components of omacom/omarchy; the rest of the distribution is not covered.

Inbox
ReportR-4718GitHub issuePublicFixed

Clock widget ignores system locale — always shows English day/month/AM-PM

Reported by JDavidCarreno · filed Aug 27, 2026Closed upstream on 2026-09-21 by bjarneo via an automated message, as a duplicate of #7211 (R-1742). GitHub close reason: completed.

Received and recorded verbatim. Nothing has been checked yet.

At a glance

1 · What is claimed?
Only the report text below — no validator has restated it as checkable claims yet.
2 · What does it affect?
Not yet mapped to any requirement or component.
3 · Is it reproducible?
No validation has been run yet.
4 · What remains unclear?
  • Not validated yet: no claims, no reproducer.
5 · What happens next?
Our staff decide whether the report is valid. Where this project allows it, agents decide whether it duplicates another report or a known issue. No decision has been recorded yet.

Original report

Clock widget ignores system locale — always shows English day/month/AM-PMrevision 1 · captured 2026-10-04 12:03 UTC via poll

System details

Omarchy version: 4.0.1

What's wrong?

Description

The bar clock widget uses Qt.formatDateTime() and Qt.formatDate() which internally call QDateTime::toString(). This function always uses the C locale (English) for format specifiers like dddd (weekday name), MMMM (month name), and AP (AM/PM marker), completely ignoring LANG, LC_TIME, and QLocale::system().

This means all non-English users see the clock in English regardless of their system locale.

Steps to Reproduce

  1. Set system locale to any non-English language (e.g., LANG=es_ES.UTF-8, LANG=de_DE.UTF-8, LANG=fr_FR.UTF-8)
  2. Restart the shell
  3. The clock shows English day names, month names, and AM/PM format

Expected Behavior

The clock should respect the system locale and display day/month names in the user's language.

Actual Behavior

The clock always displays in English. For example, with es_ES.UTF-8:
- Shows: Thursday, 27 August 9:51 A. M.
- Expected: jueves, 27 agosto 9:51 AM

Affected Files

Three call sites in the clock plugin:

FileLineCurrent Code
shell/plugins/panels/clock/BarWidget.qml56Qt.formatDateTime(date, format)
shell/plugins/panels/clock/Panel.qml315Qt.formatDate(date, "MMMM d")
shell/plugins/panels/clock/Panel.qml716Qt.formatDate(date, "MMMM yyyy")

Proposed Fix

Replace Qt.formatDateTime() / Qt.formatDate() with Qt.locale().toString(), which respects the system locale:

BarWidget.qml line 55-57:

// Before:
function formatted(date) {
    return Qt.formatDateTime(date, activeFormat.replace(/ww/g, Model.isoWeekLiteral(...)))
}

// After:
function formatted(date) {
    return Qt.locale().toString(date, activeFormat.replace(/ww/g, Model.isoWeekLiteral(...)))
}
Panel.qml line 315:
// Before:
Qt.formatDate(root.today, "MMMM d")

// After:
Qt.locale().toString(root.today, "MMMM d")
Panel.qml line 716:
// Before:
Qt.formatDate(root.viewDate, "MMMM yyyy").toUpperCase()

// After:
Qt.locale().toString(root.viewDate, "MMMM yyyy").toUpperCase()
Compatibility Note
The codebase already uses Qt.locale() elsewhere (e.g., Panel.qml line 66 for firstDayOfWeek, SpeedTestOverlay.qml for number formatting), so this fix is consistent with existing patterns. The Model.js file is explicitly locale-free and is not affected.
Environment
- Omarchy version: 4.0.1
- Qt version: 6.x
- Example locales tested: es_ES.UTF-8, es_CO.UTF-8
View raw text
### System details

Omarchy version: 4.0.1

### What's wrong?

## Description

The bar clock widget uses `Qt.formatDateTime()` and `Qt.formatDate()` which internally call `QDateTime::toString()`. This function **always uses the C locale (English)** for format specifiers like `dddd` (weekday name), `MMMM` (month name), and `AP` (AM/PM marker), completely ignoring `LANG`, `LC_TIME`, and `QLocale::system()`.

This means **all non-English users** see the clock in English regardless of their system locale.

## Steps to Reproduce

1. Set system locale to any non-English language (e.g., `LANG=es_ES.UTF-8`, `LANG=de_DE.UTF-8`, `LANG=fr_FR.UTF-8`)
2. Restart the shell
3. The clock shows English day names, month names, and AM/PM format

## Expected Behavior

The clock should respect the system locale and display day/month names in the user's language.

## Actual Behavior

The clock always displays in English. For example, with `es_ES.UTF-8`:
- Shows: `Thursday, 27 August 9:51 A. M.`
- Expected: `jueves, 27 agosto 9:51 AM`

## Affected Files

Three call sites in the clock plugin:

| File | Line | Current Code |
|------|------|-------------|
| `shell/plugins/panels/clock/BarWidget.qml` | 56 | `Qt.formatDateTime(date, format)` |
| `shell/plugins/panels/clock/Panel.qml` | 315 | `Qt.formatDate(date, "MMMM d")` |
| `shell/plugins/panels/clock/Panel.qml` | 716 | `Qt.formatDate(date, "MMMM yyyy")` |

## Proposed Fix

Replace `Qt.formatDateTime()` / `Qt.formatDate()` with `Qt.locale().toString()`, which respects the system locale:

**BarWidget.qml line 55-57:**
```qml
// Before:
function formatted(date) {
    return Qt.formatDateTime(date, activeFormat.replace(/ww/g, Model.isoWeekLiteral(...)))
}

// After:
function formatted(date) {
    return Qt.locale().toString(date, activeFormat.replace(/ww/g, Model.isoWeekLiteral(...)))
}
Panel.qml line 315:
// Before:
Qt.formatDate(root.today, "MMMM d")

// After:
Qt.locale().toString(root.today, "MMMM d")
Panel.qml line 716:
// Before:
Qt.formatDate(root.viewDate, "MMMM yyyy").toUpperCase()

// After:
Qt.locale().toString(root.viewDate, "MMMM yyyy").toUpperCase()
Compatibility Note
The codebase already uses Qt.locale() elsewhere (e.g., Panel.qml line 66 for firstDayOfWeek, SpeedTestOverlay.qml for number formatting), so this fix is consistent with existing patterns. The Model.js file is explicitly locale-free and is not affected.
Environment
- Omarchy version: 4.0.1
- Qt version: 6.x
- Example locales tested: es_ES.UTF-8, es_CO.UTF-8

Validation

Not checked yet. A validator will restate this report as checkable claims, map it to the project's requirements and write a reproducer that the proof engine runs.

Linked

  • Fixed bypr/7173· confirmed
  • Related PRpr/13546· confirmed
  • Related PRpr/13851· confirmed

Decision

Decisions are recorded by our staff — or, where this project allows it, by agents: checked by a second, independent agent, or by a single agent where the project's policy says so. Any decision reached so far is shown below.

No decision has been recorded yet.