Skip to content

English (Denmark) locale uses wrong date/time format #24134

Closed as not planned
Closed as not planned

Description

@haarp

The en_DK locale has always been a clever workaround for the lack of a proper locale that features:

  • English
  • Sane date format - ISO8601 (yyyy-mm-dd)
  • 24h time
  • week starting on Monday

Proof:

$ LC_TIME=en_US.UTF-8 date
Sat Nov 14 04:31:38 PM CET 2020
$ LC_TIME=en_DK.UTF-8 date
2020-11-14T16:31:41 CET

(Fun fact: This locale has nothing to do with Denmark, see https://unix.stackexchange.com/a/272665)

Selecting the English (Denmark) locale in Nextcloud 19.04.4 however gives you inferior mm/dd/yyyy and 12h time. This is undoubedly a bug.

#15381 is related. #15457 and #14785 are NOT related, as this issue isn't about language, but date/time formats.

Thanks!

Server configuration

Operating system:
Debian Linux 10

Web server:
Apache 2.4.38-3+deb10u4

Database:
MariaDB 10.3.25-0+deb10u1

PHP version:
7.3.19-1~deb10u1

Nextcloud version: (see Nextcloud admin page)
19.0.4

Updated from an older Nextcloud/ownCloud or fresh install:
updated

Where did you install Nextcloud from:
integrated auto-installer/updater

Signing status:
No errors have been found.

Nextcloud configuration:

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "nope"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "https:\/\/nextcloud.erppc.net\/",
        "overwritewebroot": "\/",
        "htaccess.RewriteBase": "\/",
        "dbtype": "mysql",
        "version": "19.0.4.2",
        "knowledgebaseenabled": false,
        "apps_paths": [
            {
                "path": "\/var\/www\/nextcloud\/apps",
                "url": "\/apps",
                "writable": true
            }
        ],
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "loglevel": 2,
        "mail_smtpmode": "sendmail",
        "theme": "",
        "maintenance": false,
        "trashbin_retention_obligation": "auto",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "session_lifetime": 86400,
        "mysql.utf8mb4": true,
        "updater.release.channel": "stable",
        "preview_max_x": "2048",
        "preview_max_y": "2048",
        "preview_max_filesize_image": 100,
        "app_install_overwrite": [
            "checksum"
        ]
    }
}

Client configuration

Browser:
Firefox 82.0.2

Operating system:
Linux

Activity

  1. added
    0. Needs triagePending check for reproducibility or if it fits our roadmap
    on Nov 14, 2020
  2. changed the title [-]Denmark locale uses wrong date/time format[/-] [+]English (Denmark) locale uses wrong date/time format[/+] on Nov 14, 2020
  3. szaimen commented on Jun 17, 2021

    @szaimen
    Contributor

    Is this Issue still valid in NC21.0.2? If not, please close this issue. Thanks! :)

  4. haarp commented on Jun 17, 2021

    @haarp
    Author

    Is this Issue still valid in NC21.0.2? If not, please close this issue. Thanks! :)

    Yes. In 21.0.2:

    06/17/2021 8:13:06 PM
    
    Week starts on Monday
    
  5. rigrig commented on Oct 27, 2022

    @rigrig
    Contributor

    Still an issue in 25.0.0:
    image

  6. asavah commented on Nov 3, 2022

    @asavah

    Many english locales are wrong.
    English (europe) uses mm/dd/yyyy format, which is NOT used anywhere in Europe.
    The developers should be aware that at least some English speaking people are not from America,
    and that fixing bugs which were open for years might be a good thing.

  7. szaimen commented on Jan 23, 2023

    @szaimen
    Contributor

    Hi, please update to 24.0.9 or better 25.0.3 and report back if it fixes the issue. Thank you!

    My goal is to add a label like e.g. 25-feedback to this ticket of an up-to-date major Nextcloud version where the bug could be reproduced. However this is not going to work without your help. So thanks for all your effort!

    If you don't manage to reproduce the issue in time and the issue gets closed but you can reproduce the issue afterwards, feel free to create a new bug report with up-to-date information by following this link: https://github.com/nextcloud/server/issues/new?assignees=&labels=bug%2C0.+Needs+triage&template=BUG_REPORT.yml&title=%5BBug%5D%3A+

  8. added and removed
    1. to developAccepted and waiting to be taken care of
    on Jan 23, 2023
  9. 2 remaining items

  10. artonge commented on Feb 21, 2023

    @artonge
    Collaborator

    Seems like it is due to moment.js not having a comprehensive list of locales. The solution would be to move to another date library that rely on the Intl API.

  11. szaimen commented on Feb 21, 2023

    @szaimen
    Contributor

    The solution would be to move to another date library that rely on the Intl API.

    sounds good to me

  12. adripo commented on Mar 1, 2023

    @adripo

    I confirm that the issue is still present in latest 24.0.10 version.
    Also English(Ireland) has wrong configuration. Week starts on Sunday instead of Monday.
    image

  13. adripo commented on Mar 1, 2023

    @adripo

    @szaimen FYI moment.js development is being stopped.

    As they are suggesting, maybe we don't need moment.js anymore

  14. lyallp commented on Jun 14, 2023

    @lyallp

    Nextcloud 25.0.3 and Calendar 4.4.2 still exhibit this behaviour, as in shows Sunday as the left column in the calendar, when first day of week is Monday (English - Australia)

  15. bendev25689 commented on Jun 27, 2023

    @bendev25689

    Nextcloud 26.0.2. Denmark locale is still wrong.
    Australian locale is also still wrong. We start the week on monday. Source: https://www.timeanddate.com/calendar/days/first-day-of-the-week.html
    An interface such as the one in synology calendar would be ideal:
    image

  16. jm355 commented on Feb 10, 2024

    @jm355

    This still seems to be an issue, nextcloud 28.0.2.5

  17. added
    needs reviewNeeds review to determine if still applicable or covered by other Issues
    on Sep 6, 2024
  18. ToppDev commented on Jan 3, 2025

    @ToppDev

    Still an issue in nextcloud 30.0.4

    Image

  19. susnux commented on Mar 13, 2025

    @susnux
    Contributor

    The data used for locales is not provided by Nextcloud. We use - like many other tools - the Unicode CLDR data.
    So this needs to be fixed in CLDR: https://cldr.unicode.org/#how-to-contribute

  20. jm355 commented on Mar 14, 2025

    @jm355

    Per https://unix.stackexchange.com/questions/62316/why-is-there-no-euro-english-locale/272665#272665, it looks like en_150 is also close, but I don't know how to select it in Nextcloud

  21. jm355 commented on Mar 14, 2025

    @jm355
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmap25-feedbackbugfeature: language/translations (l10n/i18n)Localization and translation mattersneeds reviewNeeds review to determine if still applicable or covered by other Issues

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions