calendar icon indicating copy to clipboard operation
calendar copied to clipboard

Odd behaviour around daylight savings switch time

Open SergeyMosin opened this issue 3 years ago • 2 comments

Steps to reproduce

  1. Ensure you have English (US) locale and New York time zone ()
  2. Try to create an event at 10:00PM on March 12 2022 (Daylight savings takes effect on March 13 2022)
  3. Impossible to create event.

Expected behavior

Event should be created at 10:00PM on March 12 2022

Actual behaviour

Event does not exist. It might have been deleted, or there was a typo in a link error is displayed

https://user-images.githubusercontent.com/10747559/154983940-61c4031e-f840-451d-b7fd-76915bc1ae28.mp4

Calendar app version

3.0.6

CalDAV-clients used

No response

Browser

Firefox 97.0 (64-bit)

Client operating system

Ubunut

Server operating system

Ubuntu

Web server

Apache

Database engine version

MySQL

PHP engine version

PHP 8.0

Nextcloud version

Nextcloud Hub II (23.0.2)

Updated from an older installed version or fresh install

Updated from an older version

List of activated apps

Enabled:
  - accessibility: 1.9.0
  - activity: 2.15.0
  - appointments: 1.11.14
  - calendar: 3.0.6
  - circles: 23.0.1
  - cloud_federation_api: 1.6.0
  - comments: 1.13.0
  - contacts: 4.0.8
  - contactsinteraction: 1.4.0
  - dashboard: 7.3.0
  - dav: 1.21.0
  - federatedfilesharing: 1.13.0
  - federation: 1.13.0
  - files: 1.18.0
  - files_pdfviewer: 2.4.0
  - files_rightclick: 1.2.0
  - files_sharing: 1.15.0
  - files_trashbin: 1.13.0
  - files_versions: 1.16.0
  - files_videoplayer: 1.12.0
  - firstrunwizard: 2.12.0
  - logreader: 2.8.0
  - lookup_server_connector: 1.11.0
  - mail: 1.11.6
  - nextcloud_announcements: 1.12.0
  - notifications: 2.11.1
  - oauth2: 1.11.0
  - password_policy: 1.13.0
  - photos: 1.5.0
  - privacy: 1.7.0
  - provisioning_api: 1.13.0
  - recommendations: 1.2.0
  - richdocuments: 5.0.2
  - richdocumentscode: 21.11.103
  - serverinfo: 1.13.0
  - settings: 1.5.0
  - sharebymail: 1.13.0
  - spreed: 13.0.3
  - support: 1.6.0
  - survey_client: 1.11.0
  - systemtags: 1.13.0
  - text: 3.4.0
  - theming: 1.14.0
  - twofactor_backupcodes: 1.12.0
  - updatenotification: 1.13.0
  - user_status: 1.3.1
  - viewer: 1.7.0
  - weather_status: 1.3.0
  - workflowengine: 2.5.0
Disabled:
  - admin_audit
  - bruteforcesettings
  - encryption
  - files_external
  - user_ldap

Nextcloud configuration

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "nc23.localhost:9090"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "23.0.2.1",
        "overwrite.cli.url": "http:\/\/nc23.localhost:9090",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpsecure": "tls",
        "mail_smtpstreamoptions": {
            "ssl": {
                "allow_self_signed": true,
                "verify_peer": false
            }
        },
        "mail_smtpauthtype": "PLAIN",
        "app.mail.verify-tls-peer": false,
        "theme": "",
        "loglevel": 2,
        "maintenance": false,
        "updater.secret": "***REMOVED SENSITIVE VALUE***"
    }
}

Web server error log

NA

Log file

NA

Browser log

Might be relevant: 
TypeError: t is null
    x_ event.js:97
    n calendarObjectInstance.js:1448
    u runtime.js:63
    _invoke runtime.js:294
    v runtime.js:119
    W_ calendar-main.js:2
    o calendar-main.js:2
    promise callback*W_ calendar-main.js:2
    o calendar-main.js:2
    q_ calendar-main.js:2
    q_ calendar-main.js:2
    getCalendarObjectInstanceForNewEvent calendarObjectInstance.js:1438
    ke vuex.esm.js:851
    dispatch vuex.esm.js:516
    dispatch vuex.esm.js:406
    e EditorMixin.js:608
    u runtime.js:63
    _invoke runtime.js:294
    v runtime.js:119
    oO calendar-main.js:2
    o calendar-main.js:2
    promise callback*oO calendar-main.js:2
    o calendar-main.js:2
    sO calendar-main.js:2
    sO calendar-main.js:2
    e EditorMixin.js:598
    S vue-router.esm.js:290
    init vue-router.esm.js:392
    VueJS 19
    init vue-router.esm.js:3002
    init vue-router.esm.js:3002
    updateRoute vue-router.esm.js:2414
    transitionTo vue-router.esm.js:2263
    confirmTransition vue-router.esm.js:2401
    r vue-router.esm.js:2000
    r vue-router.esm.js:2004
    h vue-router.esm.js:2380
    confirmTransition vue-router.esm.js:2540
    e EditorMixin.js:597
    u runtime.js:63
    _invoke runtime.js:294
    v runtime.js:119
    oO calendar-main.js:2
    o calendar-main.js:2
    sO calendar-main.js:2
    sO calendar-main.js:2
    beforeRouteEnter EditorMixin.js:596
    confirmTransition vue-router.esm.js:2535
    h vue-router.esm.js:2361
    r vue-router.esm.js:2003
    St vue-router.esm.js:2008
    confirmTransition vue-router.esm.js:2397
EditorMixin.js:598:8

Additional info

This is probably a low priority edge case.

SergeyMosin avatar Feb 21 '22 15:02 SergeyMosin

TypeError: t is null

if you have this on a dev installation maybe try with a dev build from npm run dev instead of npm run build, then we get more accurate function and variable names.

ChristophWurst avatar Feb 21 '22 16:02 ChristophWurst

I can still reproduce this bug. Error message from a dev build:

TypeError: can't access property "title", eventComponent is null
    mapEventComponentToEventObject /calendar/js/calendar-main.js:27173
    getCalendarObjectInstanceForNewEvent /calendar/js/calendar-main.js:30991
    wrappedAction /calendar/js/calendar-main.js:295786
    actionName /calendar/js/calendar-main.js:295321
    beforeRouteEnter /calendar/js/calendar-main.js:25748
    handleRouteEntered /calendar/js/calendar-main.js:129556
    init /calendar/js/calendar-main.js:129664
    merged /calendar/js/calendar-main.js:138377
    createComponent /calendar/js/calendar-main.js:140382
    createElm /calendar/js/calendar-main.js:140336
    updateChildren /calendar/js/calendar-main.js:140631
    patchVnode /calendar/js/calendar-main.js:140724
    patch /calendar/js/calendar-main.js:140892
    _update /calendar/js/calendar-main.js:137582
    updateComponent /calendar/js/calendar-main.js:137688
    get /calendar/js/calendar-main.js:137259
    run /calendar/js/calendar-main.js:137335
    flushSchedulerQueue /calendar/js/calendar-main.js:137938
    nextTick /calendar/js/calendar-main.js:136956
    flushCallbacks /calendar/js/calendar-main.js:136878
    promise callback*timerFunc /calendar/js/calendar-main.js:136903
    nextTick /calendar/js/calendar-main.js:136968
    queueWatcher /calendar/js/calendar-main.js:138024
    update /calendar/js/calendar-main.js:137326
    notify /calendar/js/calendar-main.js:134548
    reactiveSetter /calendar/js/calendar-main.js:134779
    init /calendar/js/calendar-main.js:132271
    init /calendar/js/calendar-main.js:132270
    updateRoute /calendar/js/calendar-main.js:131680
    transitionTo /calendar/js/calendar-main.js:131529
    confirmTransition /calendar/js/calendar-main.js:131668
    step /calendar/js/calendar-main.js:131350
    step /calendar/js/calendar-main.js:131354
    iterator /calendar/js/calendar-main.js:131650
    routeEnterGuard /calendar/js/calendar-main.js:131808
    beforeRouteEnter /calendar/js/calendar-main.js:25740
    routeEnterGuard /calendar/js/calendar-main.js:131801
    iterator /calendar/js/calendar-main.js:131628
    step /calendar/js/calendar-main.js:131353
    runQueue /calendar/js/calendar-main.js:131361
    confirmTransition /calendar/js/calendar-main.js:131663
    step /calendar/js/calendar-main.js:131350
    step /calendar/js/calendar-main.js:131354
    iterator /calendar/js/calendar-main.js:131650
    resolveAsyncComponents /calendar/js/calendar-main.js:131428
    iterator /calendar/js/calendar-main.js:131628
    step /calendar/js/calendar-main.js:131353
    step /calendar/js/calendar-main.js:131357
    step /calendar/js/calendar-main.js:131357
calendar-main.js:25756:19

st3iny avatar Jun 11 '25 13:06 st3iny