Unable to correct time zone in Nextcloud with privacy features enabled in browser, and no way to specify a specific time zone to operate in if desired
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 36.9k
- Forks
- 5.2k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 713
Description
Steps to reproduce
1.) In Firefox, enable privacy.resistFingerprinting in about:config
2.) Go to to any app or Settings in Nextcloud, time zone is incorrect
Expected behaviour
Although Firefox will purposely report UTC with resist fingerprinting enabled, there should always be an option to manually set a time zone. There could be many cases where a user's environment could report an incorrect time zone, or the user may simply wish to operate in a specific time zone different from the system. Or in my case, I wish I didn't have to disable security features just to see things in the correct time zone.
Actual behaviour
My system reports a different time zone from the one I am in, and Nextcloud will gladly accept this incorrect information with no way to override it.
Server configuration detail
Operating system: Linux 4.19.75-v7l+ #1270 SMP Tue Sep 24 18:51:41 BST 2019 armv7l
Webserver: Apache/2.4.38 (Raspbian) (fpm-fcgi)
Database: mysql 10.3.17
PHP version:
7.3.11-1~deb10u1
Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, sodium, standard, cgi-fcgi, mysqlnd, PDO, xml, apcu, bz2, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, imagick, intl, json, exif, mysqli, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, apc, posix, pspell, readline, redis, shmop, SimpleXML, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, wikidiff2, xmlreader, xmlwriter, xsl, zip, Phar, Zend OPcache
Nextcloud version: 17.0.2 - 17.0.2.1
Updated from an older Nextcloud/ownCloud or fresh install:
Where did you install Nextcloud from: unknown
Signing status
Array
(
)
List of activated apps
Enabled:
- activity: 2.10.1
- apporder: 0.9.0
- bookmarks: 2.3.4
- bruteforcesettings: 1.4.0
- calendar: 1.7.2
- checksum: 0.4.3
- cloud_federation_api: 1.0.0
- comments: 1.7.0
- contacts: 3.1.6
- cookbook: 0.5.7
- dav: 1.13.0
- deck: 0.7.0
- external: 3.4.1
- federatedfilesharing: 1.7.0
- federation: 1.7.0
- files: 1.12.0
- files_accesscontrol: 1.7.0
- files_automatedtagging: 1.7.0
- files_pdfviewer: 1.6.0
- files_rightclick: 0.15.1
- files_sharing: 1.9.0
- files_trashbin: 1.7.0
- files_versions: 1.10.0
- files_videoplayer: 1.6.0
- firstrunwizard: 2.6.0
- gallery: 18.4.0
- groupfolders: 5.0.5
- issuetemplate: 0.6.0
- logreader: 2.2.0
- lookup_server_connector: 1.5.0
- mail: 0.21.1
- maps: 0.1.2
- metadata: 0.10.0
- news: 14.1.2
- nextbackup: 19.12.1
- nextcloud_announcements: 1.6.0
- notes: 3.1.1
- notifications: 2.5.0
- oauth2: 1.5.0
- password_policy: 1.7.0
- passwords: 2020.1.0
- privacy: 1.1.0
- provisioning_api: 1.7.0
- ransomware_detection: 0.6.0
- ransomware_protection: 1.5.1
- recommendations: 0.5.0
- serverinfo: 1.7.0
- sharebymail: 1.7.0
- social: 0.2.101
- spreed: 7.0.2
- support: 1.0.1
- survey_client: 1.5.0
- systemtags: 1.7.0
- tasks: 0.11.3
- text: 1.1.1
- theming: 1.8.0
- timetracker: 0.0.39
- twofactor_backupcodes: 1.6.0
- twofactor_totp: 4.1.2
- twofactor_u2f: 5.0.2
- updatenotification: 1.7.0
- viewer: 1.2.0
- weather: 1.6.4
- workflowengine: 1.7.0
Disabled:
- accessibility
- admin_audit
- encryption
- files_antivirus
- files_external
- unsplash
- user_ldap
Configuration (config/config.php)
{
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"paracosm.ddns.net"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "17.0.2.1",
"overwrite.cli.url": "https:\/\/paracosm.ddns.net\/nextcloud",
"overwriteprotocol": "https",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"maintenance": false,
"twofactor_enforced": "false",
"twofactor_enforced_groups": [
"admin"
],
"twofactor_enforced_excluded_groups": [],
"mail_smtpmode": "smtp",
"mail_smtpsecure": "ssl",
"mail_sendmailmode": "smtp",
"memcache.loissue timezone cal": "\\OC\\Memcache\\APCu"
}
Are you using external storage, if yes which one: local/smb/sftp/...
Are you using encryption:
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
Client configuration
Browser: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0
Operating system: elementary OS 5.1 Hera
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
Start by reproducing the incorrect time zone with Firefox's privacy.resistFingerprinting enabled and inspect how Nextcloud receives the browser time zone across the affected apps and Settings. Define where a user-selected time zone should be configured and verify that displayed times consistently use it without disabling the browser privacy feature.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, php
- Domain
- frontend, internationalization
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100