nextcloud / nextcloud/server

[Bug]: Files sharing expiration date is not displayed in profile locale format

Open
#38,871 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop 27-feedback bug feature: language/translations (l10n/i18n) feature: sharing
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

⚠️ This issue respects the following points: ⚠️
Bug description

The displayed date in file expiration menu is not using the profile defined (locale) date format.
In my case, the use profile is defined as the following with date in the format DD/MM/YYYY.
Screenshot_20230618_122443

The expiration menu is using another format MM/DD/YYYY which create misunderstanding when you are typing the date directly.
Screenshot_20230618_122824

Steps to reproduce
  1. Define your profile locale to France and your language to British.
  2. Go to the file app
  3. Share a file and set an expiration date.
Expected behavior

The date format should be the one defined in profile locale. Otherwise, a warn note is welcome.

Installation method

Community Manual installation with Archive

Nextcloud Server version

27

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.1

Web server

Nginx

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Fresh Nextcloud Server install

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?
  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other
Configuration report
{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "version": "27.0.0.8",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "maxZipInputSize": 838860800,
        "loglevel": 2,
        "debug": false,
        "maintenance": false,
        "forcessl": true,
        "theme": "",
        "trusted_domains": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "singleuser": false,
        "mail_smtpport": "587",
        "mail_smtpsecure": "tls",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpdebug": false,
        "apps_paths": [
            {
                "path": "\/var\/www\/nextcloud\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/nextcloud\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "blacklisted_files": [],
        "data-fingerprint": "***REMOVED SENSITIVE VALUE***",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "filelocking.enabled": true,
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "allow_user_to_change_display_name": true,
        "activity_expire_days": 7300,
        "remember_login_cookie_lifetime": 604800,
        "session_lifetime": 43200,
        "auth.bruteforce.protection.enabled": true,
        "token_auth_enforced": false,
        "enable_previews": true,
        "enabledPreviewProviders": [
            "OC\\Preview\\Image",
            "OC\\Preview\\Movie",
            "OC\\Preview\\MP3",
            "OC\\Preview\\TXT",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\OpenDocument"
        ],
        "preview_max_x": 1920,
        "preview_max_y": 1080,
        "preview_max_scale_factor": 1,
        "mail_sendmailmode": "smtp",
        "mysql.utf8mb4": true,
        "skeletondirectory": "",
        "app_install_overwrite": "***REMOVED SENSITIVE VALUE***",
        "simpleSignUpLink.shown": false,
        "default_phone_region": "FR",
        "knowledgebaseenabled": false,
        "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
        "updater.release.channel": "stable"
    }
}
List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file, test, or entry point is identified in the report. Reproduce the sharing expiration flow with a France locale and British language setting, then trace the date input and display formatting. Done means the expiration date follows the profile locale format or clearly warns when it does not.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, php
Domain
frontend, localization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.