Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When assigning different timezone, the event duration would be wrongly changed to the time differences #1914

Closed
fweng322 opened this issue Jan 26, 2020 · 4 comments · Fixed by #2027
Labels
2. developing Work in progress bug
Milestone

Comments

@fweng322
Copy link

Steps to reproduce

  1. Create an event by clicking the day on the calendar
  2. Click "More" to expand it to detail settings
  3. Uncheck "all day" and set the start time to 10:00 am and end time to 1:00 pm
    Screenshot_20200126_194825
  4. Click the earth and choose a different timezone (in my case my original timezone is Asia/Taipei UTC+8 and I choose Europe/Brussels UTC+1)
  5. The end time would be changed to 5:00 pm automatically (7 hours differences, so it became 10:00 ~ 17:00)
    Screenshot_20200126_194844
    Screenshot_20200126_194909
  6. When I tried to change the end time, the start time would be automatically changed too (Keep the duration as 7 hours)
    Screenshot_20200126_194921
  7. I've tried with another timezone (Denver, UTC-7, which is 15 hours different from Taipei) and when I set the start time to 10am the end time would automatically be set to 1am the next day (duration become 15 hours)

Expected behaviour

The duration shouldn't be changed. The time should be saved in the timezone I set.

Actual behaviour

A misbehavior happened to make the time differences become the duration time.

Calendar app

Calendar app version: 2.0.1

CalDAV-clients used: N/A

Client configuration

Browser: Chromium 78.0

Operating system: Debian testing

Server configuration

Operating system: Debian Buster

Web server: Apache 2.4.38

Database: MariaDB 10.3.18

PHP version: 7.3.11

Nextcloud Version: 17.0.2

Updated from an older installed version or fresh install: Updated

List of activated apps:

Enabled:
  - accessibility: 1.3.0
  - activity: 2.10.1
  - admin_audit: 1.7.0
  - bruteforcesettings: 1.5.0
  - calendar: 2.0.1
  - cloud_federation_api: 1.0.0
  - comments: 1.7.0
  - contacts: 3.1.8
  - dav: 1.13.0
  - federatedfilesharing: 1.7.0
  - files: 1.12.0
  - files_accesscontrol: 1.7.0
  - files_external: 1.8.0
  - files_markdown: 2.2.0
  - files_mindmap: 0.0.15
  - 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
  - logreader: 2.2.0
  - lookup_server_connector: 1.5.0
  - nextcloud_announcements: 1.6.0
  - notes: 3.1.1
  - notifications: 2.5.0
  - oauth2: 1.5.0
  - password_policy: 1.7.0
  - polls: 1.0.0
  - privacy: 1.1.0
  - provisioning_api: 1.7.0
  - recommendations: 0.5.0
  - registration: 0.4.7
  - richdocuments: 3.5.1
  - serverinfo: 1.7.0
  - spreed: 7.0.2
  - support: 1.0.1
  - survey_client: 1.5.0
  - systemtags: 1.7.0
  - text: 1.1.1
  - theming: 1.8.0
  - twofactor_backupcodes: 1.6.0
  - updatenotification: 1.7.0
  - viewer: 1.2.0
  - workflowengine: 1.7.0
Disabled:
  - encryption
  - federation
  - mail
  - sharebymail
  - user_ldap

Nextcloud configuration:

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "nextcloud.slat.org"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "https:\/\/nextcloud.slat.org",
        "dbtype": "mysql",
        "version": "17.0.2.1",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_smtpauthtype": "LOGIN",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "maintenance": false,
        "theme": "",
        "loglevel": 2,
        "updater.release.channel": "stable",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "mail_sendmailmode": "smtp",
        "filelocking.enabled": true,
        "mysql.utf8mb4": true
    },
    "apps": {
        "accessibility": {
            "enabled": "yes",
            "installed_version": "1.3.0",
            "types": ""
        },
        "activity": {
            "enabled": "yes",
            "installed_version": "2.10.1",
            "types": "filesystem"
        },
        "admin_audit": {
            "enabled": "yes",
            "installed_version": "1.7.0",
            "types": "logging"
        },
        "backgroundjob": {
            "lastjob": "65699"
        },
        "bruteforcesettings": {
            "enabled": "yes",
            "installed_version": "1.5.0",
            "types": ""
        },
        "calendar": {
            "enabled": "yes",
            "installed_version": "2.0.1",
            "types": ""
        },
        "circles": {
            "enabled": "no",
            "installed_version": "0.15.2",
            "test_async_count": "121",
            "test_async_hand": "0",
            "test_async_init": "1522626523",
            "test_async_lock": "f2c1ba917088f72f069fc2fb75402f8550b10bc634c801be",
            "types": ""
        },
        "cloud_federation_api": {
            "enabled": "yes",
            "installed_version": "1.0.0",
            "types": "filesystem"
        },
        "comments": {
            "enabled": "yes",
            "installed_version": "1.7.0",
            "types": "logging"
        },
        "contacts": {
            "enabled": "yes",
            "installed_version": "3.1.8",
            "types": ""
        },
        "core": {
            "backgroundjobs_mode": "cron",
            "enterpriseLogoChecked": "yes",
            "installed.bundles": "[\"CoreBundle\"]",
            "installedat": "1510649355.645",
            "lastcron": "1580040013",
            "lastupdateResult": "[]",
            "lastupdatedat": "1579971608",
            "moveavatarsdone": "yes",
            "oc.integritycheck.checker": "[]",
            "previewsCleanedUp": "1",
            "public_files": "files_sharing\/public.php",
            "public_webdav": "dav\/appinfo\/v1\/publicwebdav.php",
            "scss.variables": "968d29bce32c551e1dbf27e01d11ebae",
            "theming.variables": "968d29bce32c551e1dbf27e01d11ebae",
            "umgmt_send_email": "true",
            "umgmt_show_backend": "true",
            "umgmt_show_email": "true",
            "umgmt_show_last_login": "true",
            "umgmt_show_storage_location": "true",
            "updater.secret.created": "1576840235",
            "vendor": "nextcloud"
        },
        "dav": {
            "buildCalendarReminderIndex": "yes",
            "buildCalendarSearchIndex": "yes",
            "chunks_migrated": "1",
            "enabled": "yes",
            "installed_version": "1.13.0",
            "regeneratedBirthdayCalendarsForYearFix": "yes",
            "types": "filesystem"
        },
        "federatedfilesharing": {
            "enabled": "yes",
            "installed_version": "1.7.0",
            "types": ""
        },
        "federation": {
            "enabled": "no",
            "installed_version": "1.7.0",
            "types": "authentication"
        },
        "files": {
            "cronjob_scan_files": "500",
            "default_quota": "5 GB",
            "enabled": "yes",
            "installed_version": "1.12.0",
            "types": "filesystem"
        },
        "files_accesscontrol": {
            "enabled": "yes",
            "installed_version": "1.7.0",
            "types": "filesystem"
        },
        "files_antivirus": {
            "av_path": "\/usr\/bin\/clamscan",
            "enabled": "no",
            "installed_version": "2.0.0",
            "types": "filesystem,dav"
        },
        "files_external": {
            "enabled": "yes",
            "installed_version": "1.8.0",
            "types": "filesystem",
            "user_mounting_backends": "ftp,dav,owncloud,sftp,amazons3,dropbox,googledrive,swift,\\OC\\Files\\Storage\\SFTP_Key"
        },
        "files_markdown": {
            "enabled": "yes",
            "installed_version": "2.2.0",
            "types": ""
        },
        "files_mindmap": {
            "enabled": "yes",
            "installed_version": "0.0.15",
            "types": ""
        },
        "files_pdfviewer": {
            "enabled": "yes",
            "installed_version": "1.6.0",
            "types": ""
        },
        "files_rightclick": {
            "enabled": "yes",
            "installed_version": "0.15.1",
            "types": ""
        },
        "files_sharing": {
            "enabled": "yes",
            "installed_version": "1.9.0",
            "types": "filesystem"
        },
        "files_texteditor": {
            "enabled": "no",
            "installed_version": "2.8.0",
            "types": ""
        },
        "files_trashbin": {
            "enabled": "yes",
            "installed_version": "1.7.0",
            "types": "filesystem,dav"
        },
        "files_versions": {
            "enabled": "yes",
            "installed_version": "1.10.0",
            "types": "filesystem,dav"
        },
        "files_videoplayer": {
            "enabled": "yes",
            "installed_version": "1.6.0",
            "types": ""
        },
        "firstrunwizard": {
            "enabled": "yes",
            "installed_version": "2.6.0",
            "types": "logging"
        },
        "forms": {
            "enabled": "no",
            "installed_version": "1.0.3",
            "types": ""
        },
        "gallery": {
            "enabled": "yes",
            "installed_version": "18.4.0",
            "types": ""
        },
        "logreader": {
            "enabled": "[\"admin\"]",
            "installed_version": "2.2.0",
            "types": ""
        },
        "lookup_server_connector": {
            "enabled": "yes",
            "installed_version": "1.5.0",
            "types": "authentication"
        },
        "mail": {
            "enabled": "no",
            "installed_version": "0.21.0",
            "types": ""
        },
        "mindmaps": {
            "enabled": "no",
            "installed_version": "0.1.0",
            "types": ""
        },
        "nextcloud_announcements": {
            "enabled": "yes",
            "installed_version": "1.6.0",
            "notification_groups": "[\"admin\"]",
            "pub_date": "Thu, 24 Oct 2019 00:00:00 +0200",
            "types": "logging"
        },
        "notes": {
            "enabled": "yes",
            "installed_version": "3.1.1",
            "types": ""
        },
        "notifications": {
            "enabled": "yes",
            "installed_version": "2.5.0",
            "types": "logging"
        },
        "oauth2": {
            "enabled": "yes",
            "installed_version": "1.5.0",
            "types": "authentication"
        },
        "password_policy": {
            "enabled": "yes",
            "installed_version": "1.7.0",
            "types": ""
        },
        "polls": {
            "enabled": "yes",
            "installed_version": "1.0.0",
            "types": ""
        },
        "privacy": {
            "enabled": "yes",
            "installed_version": "1.1.0",
            "types": ""
        },
        "provisioning_api": {
            "enabled": "yes",
            "installed_version": "1.7.0",
            "types": "prevent_group_restriction"
        },
        "recommendations": {
            "enabled": "yes",
            "installed_version": "0.5.0",
            "types": ""
        },
        "registration": {
            "admin_approval_required": "yes",
            "enabled": "yes",
            "installed_version": "0.4.7",
            "registered_user_group": "user",
            "types": ""
        },
        "richdocuments": {
            "edit_groups": "",
            "enabled": "yes",
            "external_apps": "",
            "installed_version": "3.5.1",
            "types": "filesystem,dav,prevent_group_restriction",
            "wopi_url": "https:\/\/office.slat.org"
        },
        "serverinfo": {
            "enabled": "[\"admin\"]",
            "installed_version": "1.7.0",
            "types": ""
        },
        "sharebymail": {
            "enabled": "no",
            "installed_version": "1.7.0",
            "types": "filesystem"
        },
        "socialsharing_email": {
            "enabled": "no",
            "installed_version": "1.0.5",
            "types": ""
        },
        "spreed": {
            "enabled": "yes",
            "installed_version": "7.0.2",
            "project_access_invalidated": "1",
            "signaling_ticket_secret": "***REMOVED SENSITIVE VALUE***",
            "stun_servers": "***REMOVED SENSITIVE VALUE***",
            "types": "prevent_group_restriction"
        },
        "spreedme": {
            "OWNCLOUD_TEMPORARY_PASSWORD_LOGIN_ENABLED": "false",
            "SPREED_WEBRTC_ALLOW_ANONYMOUS_FILE_TRANSFERS": "false",
            "SPREED_WEBRTC_BASEPATH": "\/webrtc\/",
            "SPREED_WEBRTC_IS_SHARED_INSTANCE": "false",
            "SPREED_WEBRTC_ORIGIN": "",
            "SPREED_WEBRTC_SHAREDSECRET": "2ec8939ff02034b124696ac4eebe31bcb2f6db689742584bdbc6d980be63800d",
            "SPREED_WEBRTC_UPLOAD_FILE_TRANSFERS": "false",
            "enabled": "no",
            "installed_version": "0.3.11",
            "is_set_up": "true",
            "types": ""
        },
        "support": {
            "enabled": "yes",
            "installed_version": "1.0.1",
            "types": "session"
        },
        "survey_client": {
            "enabled": "yes",
            "installed_version": "1.5.0",
            "last_report": "{\"id\":\"ocoy3mdtqejr\",\"items\":[[\"server\",\"version\",\"17.0.2.1\"],[\"server\",\"code\",\"other\"],[\"server\",\"enable_avatars\",\"yes\"],[\"server\",\"enable_previews\",\"yes\"],[\"server\",\"memcache.local\",\"\\\\OC\\\\Memcache\\\\Redis\"],[\"server\",\"memcache.distributed\",\"none\"],[\"server\",\"asset-pipeline.enabled\",\"no\"],[\"server\",\"filelocking.enabled\",\"yes\"],[\"server\",\"memcache.locking\",\"\\\\OC\\\\Memcache\\\\Redis\"],[\"server\",\"debug\",\"no\"],[\"server\",\"cron\",\"cron\"],[\"php\",\"version\",\"7.3.11\"],[\"php\",\"memory_limit\",-1],[\"php\",\"max_execution_time\",0],[\"php\",\"upload_max_filesize\",2097152],[\"database\",\"type\",\"mysql\"],[\"database\",\"version\",\"10.3.18\"],[\"database\",\"size\",207732736],[\"apps\",\"accessibility\",\"1.3.0\"],[\"apps\",\"activity\",\"2.10.1\"],[\"apps\",\"admin_audit\",\"1.7.0\"],[\"apps\",\"bruteforcesettings\",\"1.5.0\"],[\"apps\",\"calendar\",\"2.0.1\"],[\"apps\",\"circles\",\"disabled\"],[\"apps\",\"cloud_federation_api\",\"1.0.0\"],[\"apps\",\"comments\",\"1.7.0\"],[\"apps\",\"contacts\",\"3.1.8\"],[\"apps\",\"dav\",\"1.13.0\"],[\"apps\",\"federatedfilesharing\",\"1.7.0\"],[\"apps\",\"federation\",\"disabled\"],[\"apps\",\"files\",\"1.12.0\"],[\"apps\",\"files_accesscontrol\",\"1.7.0\"],[\"apps\",\"files_antivirus\",\"disabled\"],[\"apps\",\"files_external\",\"1.8.0\"],[\"apps\",\"files_markdown\",\"2.2.0\"],[\"apps\",\"files_mindmap\",\"0.0.15\"],[\"apps\",\"files_pdfviewer\",\"1.6.0\"],[\"apps\",\"files_rightclick\",\"0.15.1\"],[\"apps\",\"files_sharing\",\"1.9.0\"],[\"apps\",\"files_texteditor\",\"disabled\"],[\"apps\",\"files_trashbin\",\"1.7.0\"],[\"apps\",\"files_versions\",\"1.10.0\"],[\"apps\",\"files_videoplayer\",\"1.6.0\"],[\"apps\",\"firstrunwizard\",\"2.6.0\"],[\"apps\",\"forms\",\"disabled\"],[\"apps\",\"gallery\",\"18.4.0\"],[\"apps\",\"logreader\",\"2.2.0\"],[\"apps\",\"lookup_server_connector\",\"1.5.0\"],[\"apps\",\"mail\",\"disabled\"],[\"apps\",\"mindmaps\",\"disabled\"],[\"apps\",\"nextcloud_announcements\",\"1.6.0\"],[\"apps\",\"notes\",\"3.1.1\"],[\"apps\",\"notifications\",\"2.5.0\"],[\"apps\",\"oauth2\",\"1.5.0\"],[\"apps\",\"password_policy\",\"1.7.0\"],[\"apps\",\"polls\",\"1.0.0\"],[\"apps\",\"privacy\",\"1.1.0\"],[\"apps\",\"provisioning_api\",\"1.7.0\"],[\"apps\",\"recommendations\",\"0.5.0\"],[\"apps\",\"registration\",\"0.4.7\"],[\"apps\",\"richdocuments\",\"3.5.1\"],[\"apps\",\"serverinfo\",\"1.7.0\"],[\"apps\",\"sharebymail\",\"disabled\"],[\"apps\",\"socialsharing_email\",\"disabled\"],[\"apps\",\"spreed\",\"7.0.2\"],[\"apps\",\"spreedme\",\"disabled\"],[\"apps\",\"support\",\"1.0.1\"],[\"apps\",\"survey_client\",\"1.5.0\"],[\"apps\",\"systemtags\",\"1.7.0\"],[\"apps\",\"text\",\"1.1.1\"],[\"apps\",\"theming\",\"1.8.0\"],[\"apps\",\"twofactor_backupcodes\",\"1.6.0\"],[\"apps\",\"updatenotification\",\"1.7.0\"],[\"apps\",\"viewer\",\"1.2.0\"],[\"apps\",\"workflowengine\",\"1.7.0\"],[\"stats\",\"num_files\",238995],[\"stats\",\"num_users\",45],[\"stats\",\"num_storages\",66],[\"stats\",\"num_storages_local\",1],[\"stats\",\"num_storages_home\",57],[\"stats\",\"num_storages_other\",8],[\"stats\",\"num_comments\",50],[\"stats\",\"num_comment_markers\",2],[\"stats\",\"num_systemtags\",0],[\"stats\",\"num_systemtags_mappings\",0],[\"files_sharing\",\"num_shares\",438],[\"files_sharing\",\"num_shares_user\",125],[\"files_sharing\",\"num_shares_groups\",7],[\"files_sharing\",\"num_shares_link\",290],[\"files_sharing\",\"num_shares_link_no_password\",290],[\"files_sharing\",\"num_fed_shares_sent\",4],[\"files_sharing\",\"num_fed_shares_received\",3],[\"files_sharing\",\"permissions_2_0\",\"3\"],[\"files_sharing\",\"permissions_0_1\",\"3\"],[\"files_sharing\",\"permissions_3_1\",\"256\"],[\"files_sharing\",\"permissions_4_1\",\"3\"],[\"files_sharing\",\"permissions_3_3\",\"11\"],[\"files_sharing\",\"permissions_4_3\",\"3\"],[\"files_sharing\",\"permissions_3_4\",\"8\"],[\"files_sharing\",\"permissions_0_15\",\"9\"],[\"files_sharing\",\"permissions_3_15\",\"15\"],[\"files_sharing\",\"permissions_4_15\",\"1\"],[\"files_sharing\",\"permissions_6_15\",\"3\"],[\"files_sharing\",\"permissions_0_17\",\"4\"],[\"files_sharing\",\"permissions_0_19\",\"13\"],[\"files_sharing\",\"permissions_1_19\",\"1\"],[\"files_sharing\",\"permissions_2_19\",\"1\"],[\"files_sharing\",\"permissions_6_19\",\"1\"],[\"files_sharing\",\"permissions_0_25\",\"2\"],[\"files_sharing\",\"permissions_0_31\",\"94\"],[\"files_sharing\",\"permissions_1_31\",\"6\"],[\"files_sharing\",\"permissions_2_31\",\"1\"],[\"encryption\",\"enabled\",\"no\"],[\"encryption\",\"default_module\",\"no\"]]}",
            "last_sent": "1579884952",
            "types": ""
        },
        "systemtags": {
            "enabled": "yes",
            "installed_version": "1.7.0",
            "types": "logging"
        },
        "text": {
            "enabled": "yes",
            "installed_version": "1.1.1",
            "types": ""
        },
        "theming": {
            "backgroundMime": "image\/png",
            "cachebuster": "9",
            "enabled": "yes",
            "installed_version": "1.8.0",
            "logoMime": "image\/png",
            "name": "\u8edf\u9ad4\u81ea\u7531\u5354\u6703 Nextcloud \u6a94\u6848\u5206\u4eab\u5e73\u53f0",
            "slogan": "***REMOVED SENSITIVE VALUE***",
            "types": "logging",
            "url": "***REMOVED SENSITIVE VALUE***"
        },
        "twofactor_backupcodes": {
            "enabled": "yes",
            "installed_version": "1.6.0",
            "types": ""
        },
        "updatenotification": {
            "bruteforcesettings": "1.3.0",
            "calendar": "1.6.5",
            "circles": "0.14.2",
            "contacts": "3.1.1",
            "core": "15.0.7.0",
            "enabled": "yes",
            "files_antivirus": "1.4.2",
            "files_markdown": "2.0.6",
            "files_pdfviewer": "1.1.2",
            "installed_version": "1.7.0",
            "notes": "2.6.0",
            "registration": "0.4.6",
            "richdocuments": "3.2.4",
            "socialsharing_email": "1.0.5",
            "theming": "1.4.5",
            "types": "",
            "update_check_errors": "0"
        },
        "viewer": {
            "enabled": "yes",
            "installed_version": "1.2.0",
            "types": ""
        },
        "workflowengine": {
            "enabled": "yes",
            "installed_version": "1.7.0",
            "types": "filesystem"
        }
    }
}

Logs

Web server error log (e.g. /var/log/apache)

nextcloud_error.log
nextcloud_access.log

Log file (data/nextcloud.log)

nextcloud.log

Browser log

a) The javascript console log
nextcloud.slat.org-web-console.log
It was shown in the screenshot too. I didn't see too many useful information.

b) The network log
nextcloud.slat.org.har.log

@fweng322 fweng322 added 0. to triage Pending approval or rejection bug labels Jan 26, 2020
@georgehrke
Copy link
Member

The end time would be changed to 5:00 pm automatically (7 hours differences, so it became 10:00 ~ 17:00)

It automatically changed the time to 5pm, because by changing the start-timezone, you are putting the start-date after the end-date. As this is not possible, it automatically sets the end date to the start-date. (As 5pm taipei is the same as 10am Brussel)

When I tried to change the end time, the start time would be automatically changed too (Keep the duration as 7 hours)

What did you try to change the end time to?

I agree as this is not optimal. There are cases where you want different timezones for start and end, e.g. an intercontinental flight, but most of the time start and end timezone is the same, so I think the default behaviour should be changing both.

@fweng322
Copy link
Author

fweng322 commented Jan 26, 2020

The end time would be changed to 5:00 pm automatically (7 hours differences, so it became 10:00 ~ 17:00)

It automatically changed the time to 5pm, because by changing the start-timezone, you are putting the start-date after the end-date. As this is not possible, it automatically sets the end date to the start-date. (As 5pm taipei is the same as 10am Brussel)

I have to change the timezone of start time first, then end time. Both timezone were set then.

However after setting both timezone, when I change the end time to any time, the start time would be changed automatically too.

When I tried to change the end time, the start time would be automatically changed too (Keep the duration as 7 hours)

What did you try to change the end time to?

I agree as this is not optimal. There are cases where you want different timezones for start and end, e.g. an intercontinental flight, but most of the time start and end timezone is the same, so I think the default behaviour should be changing both.

I'm not setting different timezone for start and end time. Just in steps I have to set the start timezone first, and at that moment the end time was changed automatically.

At step 6 I missed telling you the timezone of end time was set to Brussels too. But no matter the timezone of end time was set or not, the behavior was the same.

@georgehrke georgehrke added this to the 2.0.2 milestone Jan 26, 2020
@Malspherus
Copy link

I think this problem goes deeper, I just tried to create an event, then change the timezone for both start & end. It's impossible to create the event with the times I want right now.

  1. Set the start time to 14:00
  2. Set the end time to 14:30
  3. After changing the start timezone (from Tokyo to Vienna) the end time changed to 21:00 (14:00+7h, the time difference right now is actually 8h due to Vienna having winter time, not sure if this is another problem with the timezones or actually correct)
  4. Changing the end timezone (from Tokyo to Vienna) causes no further changes
  5. Changing the end time back to 14:30 causes the start time to change to 7:00 (this should not happen as the end time is after the start time and both are in the same timezone)
  6. Changing the start time back to 14:00 causes the end time to change to 21:00 (keeping the duration the same as expected)
  7. Repeat Step 5 and 6 indefinitely, setting the event from 14:00 to 14:30 is impossible

I tried to enter the time with the timepicker and to write it in manually, neither worked

@cyphar
Copy link
Member

cyphar commented Feb 26, 2020

I've also hit this in a couple of different ways. The net result is always that the end timezone is changed once you click "update" and re-open the event (and the start timezone also can change). I've even hit this problem when trying to set both the start and end to be in the same timezone!.

Trying to add an entry for an intercontinental flight:

  1. Create a new event.
  2. Uncheck "all day".
  3. Set start to 2020-02-20 21:00 and the timezone to Sydney/Australia (my local timezone, and the default).
  4. Set end to 2020-02-21 05:00 and the timezone to Tokyo/Asia.
  5. Save the event.
  6. Re-open the event and note that the start time is now 2020-02-20 21:00 with the timezone Tokyo/Asia and the end is now 2020-02-21 05:00 with the timezone Sydney/Australia.

Trying to create an entry in a different timezone:

  1. Create a new event.
  2. Uncheck "all day".
  3. Set start to 2020-03-02 17:00 and the timezone to Los Angeles/America.
  4. Note that the timezone for the end doesn't change. Instead the end time changes to 2020-03-03 12:00 (which is correct in my timezone).
  5. Set the timezone for the end to Los Angeles/America
  6. Trying to change the end time results in the start time moving (as though the end timezone change hasn't actually been applied).
  7. If you save the event and re-open it, the end timezone is still set to the default.

Unless I'm mistaken, both of these behaviours could be explained by a bug where you are doing something like

event->start_timezone = $_POST[user_data]->start_timezone;
event->start_timezone = $_POST[user_data]->end_timezone;

@georgehrke georgehrke added 2. developing Work in progress and removed 0. to triage Pending approval or rejection labels Feb 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2. developing Work in progress bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants