nextcloud / tasks

:white_check_mark: Tasks app for Nextcloud
https://apps.nextcloud.com/apps/tasks
GNU Affero General Public License v3.0
575 stars 100 forks source link

Wrong time for cards displayed in "Tasks" in GMT+2 #2537

Closed alx-tuilmenau closed 6 months ago

alx-tuilmenau commented 7 months ago

How to use GitHub

Describe the bug If I create a Card and assign a Date / Time to it, the date is wrong in the "Tasks" view (German timezone).

To Reproduce Steps to reproduce the behavior:

  1. Go to Desk app
  2. Create Card
  3. Add expiration date and time
  4. Go to Tasks app
  5. See the card listed with the time 2 hours off

Expected behavior The date should be the same as entered

Screenshots grafik grafik

Client details:

Server details **Operating system**: Debian 12 **Web server:** Apache **Database:** MariaDB **PHP version:** 8.2 **Nextcloud version:** 27.1.8 **Where did you install Nextcloud from:** ZIP **List of activated apps:** ``` Enabled: - activity: 2.19.0 - announcementcenter: 6.8.1 - bruteforcesettings: 2.7.0 - calendar: 4.6.7 - circles: 27.0.1 - cloud_federation_api: 1.10.0 - collectives: 2.10.1 - comments: 1.17.0 - contacts: 5.5.3 - contactsinteraction: 1.8.0 - dav: 1.27.0 - deck: 1.11.4 - drawio: 2.1.4 - drop_account: 2.3.2 - federatedfilesharing: 1.17.0 - files: 1.22.0 - files_antivirus: 5.5.0 - files_downloadactivity: 1.16.0 - files_mindmap: 0.0.30 - files_pdfviewer: 2.8.0 - files_reminders: 1.0.0 - files_retention: 1.16.0 - files_rightclick: 1.6.0 - files_sharing: 1.19.0 - files_trashbin: 1.17.0 - files_versions: 1.20.0 - forms: 3.4.7 - guests: 2.5.1 - impersonate: 1.14.0 - login_notes: 1.3.1 - logreader: 2.12.0 - lookup_server_connector: 1.15.0 - metadata: 0.19.0 - notes: 4.9.4 - notifications: 2.15.0 - oauth2: 1.15.2 - officeonline: 2.1.1 - photos: 2.3.0 - polls: 5.4.3 - provisioning_api: 1.17.0 - quota_warning: 1.19.0 - quotaadmin: 0.0.5 - recommendations: 1.6.0 - related_resources: 1.2.0 - richdocuments: 8.2.7 - serverinfo: 1.17.0 - settings: 1.9.0 - spreed: 17.1.8 - systemtags: 1.17.0 - tables: 0.6.6 - tasks: 0.15.0 - text: 3.8.0 - theming: 2.2.0 - twofactor_backupcodes: 1.16.0 - twofactor_totp: 9.0.0 - twofactor_webauthn: 1.4.0 - updatenotification: 1.17.0 - user_ldap: 1.17.0 - viewer: 2.1.0 - workflowengine: 2.9.0 ``` **Nextcloud configuration:** ``` $CONFIG = array ( 'instanceid' => '*', 'passwordsalt' => '*', 'secret' => '*', 'trusted_domains' => array ( 0 => '*', 1 => '*', ), 'datadirectory' => '*', 'dbtype' => 'mysql', 'version' => '27.1.8.1', 'dbname' => 'nextcloud', 'dbhost' => '*', 'dbport' => '', 'dbtableprefix' => 'oc_', 'mysql.utf8mb4' => true, 'dbuser' => 'nextcloud', 'dbpassword' => '*', 'dbdriveroptions' => array ( 1002 => 'SET wait_timeout = 28800', ), 'installed' => true, 'default_language' => 'de', 'updatechecker' => true, 'has_internet_connection' => true, 'memcached_servers' => array ( 0 => array ( 0 => 'localhost', 1 => 11211, ), ), 'appstoreenabled' => true, 'ldapIgnoreNamingRules' => false, 'ldapProviderFactory' => '\\OCA\\User_LDAP\\LDAPProviderFactory', 'loglevel' => 2, 'trusted_proxies' => array ( 0 => '*', ), 'forwarded_for_headers' => array ( 0 => 'HTTP_X_FORWARDED_FOR', ), 'overwritehost' => '*', 'overwriteprotocol' => 'https', 'overwrite.cli.url' => 'https://*', 'mail_from_address' => 'noreply', 'mail_smtpmode' => 'smtp', 'mail_domain' => '*', 'skeletondirectory' => '/data/nextcloud_skel', 'activity_expire_days' => 14, 'integrity.check.disabled' => true, 'memcache.local' => '\\OC\\Memcache\\APCu', 'memcache.distributed' => '\\OC\\Memcache\\Redis', 'memcache.locking' => '\\OC\\Memcache\\Redis', 'redis' => array ( 'host' => '*', 'port' => 6379, 'password' => '*', ), 'knowledgebaseenabled' => false, 'defaultapp' => 'apporder', 'sharing.minSearchStringLength' => 4, 'sharing.maxAutocompleteResults' => 5, 'maintenance' => false, 'debug' => false, 'htaccess.RewriteBase' => '/', 'proxy' => '*', 'mail_smtphost' => '*', 'mail_smtpport' => '25', 'updater.release.channel' => 'stable', 'lookup_server' => '', 'app_install_overwrite' => array ( 0 => 'files_upload_mtime', 1 => 'quotaadmin', 2 => 'drop_account', 3 => 'gpxedit', 4 => 'twofactor_u2f', 5 => 'files_downloadactivity', ), 'enable_previews' => true, 'preview_max_x' => 700, 'preview_max_y' => 700, 'preview_max_scale_factor' => 2, 'tempdirectory' => '*', 'localstorage.allowsymlinks' => true, 'hashingMemoryCost' => 8, 'default_phone_region' => 'de', 'upgrade.disable-web' => true, 'preview_max_filesize_image' => 20, 'enabledPreviewProviders' => array ( 0 => 'OC\\Preview\\PNG', 1 => 'OC\\Preview\\JPEG', 2 => 'OC\\Preview\\GIF', 3 => 'OC\\Preview\\BMP', 4 => 'OC\\Preview\\XBitmap', 5 => 'OC\\Preview\\MP3', 6 => 'OC\\Preview\\TXT', 7 => 'OC\\Preview\\MarkDown', ), 'profile.enabled' => false, 'lost_password_link' => 'disabled', 'bulkupload.enabled' => false, 'trashbin_retention_obligation' => 'auto, 14', 'versions_retention_obligation' => 'auto, 14', ); ``` **Are you using an external user-backend, if yes which one:** LDAP
Logs #### Nextcloud log (data/nextcloud.log) ``` Nothing related ``` #### Browser log ``` Nothing realted ```
joshtrichards commented 6 months ago

Reproduced. Looks like a Tasks matter and that it is showing the date in UTC/GMT. So the exact difference will depend on your own timezone. I'll transfer this over to that repo.

raimund-schluessler commented 6 months ago

That was fixed in https://github.com/nextcloud/tasks/pull/2446 and will be released in v0.16.0.