[Bug]: Files sharing expiration date is not displayed in profile locale format
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
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.
The expiration menu is using another format MM/DD/YYYY which create misunderstanding when you are typing the date directly.
Steps to reproduce
- Define your profile locale to France and your language to British.
- Go to the file app
- 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
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
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