[Bug]: last job timestamp localization wrong
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 36.9k
- Forks
- 5.2k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 713
Description
⚠️ This issue respects the following points: ⚠️
- This is a bug, not a question or a configuration/webserver/proxy issue.
- This issue is not already reported on Github OR Nextcloud Community Forum (I've searched it).
- Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- I agree to follow Nextcloud's Code of Conduct.
Bug description
28.0.4.1 (community docker, Apache), Windows/Firefox. User interface is set to en-UK and shows correct "base" interface language. but dynamic string when the job effectively run localizes in German (which might be my region)
Transifex translation is "Last job ran {relativeTime}."
The problem is related to "Locale: German" switching to English makes the string to "full English".
addition
testing the issue I found many locale definitions are wrong e.g.
using AM/PM format and MM/dd/yyyy format is not common in Germany and Switzerland. both use "dd.MM.yyyy HH.mm" format without AM/PM
Steps to reproduce
- set you personal settings at
https://nextcloud.mydomain.tld/settings/userto Language "English (US)" and Locale: "German" - visit "Basic Admin settings" at
https://nextcloud.mydomain.tld/settings/admin - observe the main language is English while "{relative time}" is localized in German
Expected behavior
- localized relative time must follow the main language
- locales must follow common country standard
Installation method
Community Docker image
Nextcloud Server version
28
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.2
Web server
Apache (supported)
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 22 to 23)
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
- Default user-backend (database)
- LDAP/ Active Directory
- SSO - SAML
- Other
Configuration report
core
List of activated Apps
core
Nextcloud Signing status
not relevant
Nextcloud Logs
nothing important
Additional info
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the mismatch using the reported English (US) language and German locale settings on the Basic Admin settings page. Trace how the relative-time string and date formats select language versus locale, then verify that relative time follows the main language and that German and Swiss formats use the expected local conventions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, php
- Domain
- frontend, localization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100