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

Calendar interface unable to select / print the proper date #796

Closed
Heracles31 opened this issue Dec 22, 2018 · 16 comments
Closed

Calendar interface unable to select / print the proper date #796

Heracles31 opened this issue Dec 22, 2018 · 16 comments
Labels
3. to review Waiting for reviews bug Something isn't working high High priority
Milestone

Comments

@Heracles31
Copy link

Heracles31 commented Dec 22, 2018

The calendar app is unable to set the proper birth date. The person is born 28th dec 1928. Whenever I try to select that date in the Web interface, the sub menu closes and shows a date in November. I did again, no luck. Clicked on the month itself, tried any other date in Dec 1928, nothing is doing.

I deleted the field and switched to my iPad which sync the contacts over CardDav. I configured the date properly there. Back in the web interface, the date re-appeared but again, in the month of November instead of December.

-Update :
Forgot to mention that contact imported from VCF files with a brith date in December are showed properly. Difference is that when imported, the field mentions only the day itself, no hour, while when setting it from the Web Interface, the interface requires an hour.

-End of the update...

Steps to reproduce

  1. Go in a contact without a birth date
  2. Set it for 28 Dec 1928
  3. See the saved result as being marked for November instead of December

Expected behaviour

Have the proper date configured and printed in the contact...

Actual behaviour

Date is switched back one month, to November.

Server configuration

Nextcloud Docker, latest

Operating system:
Alpine

Web server:
Apache

Database:
MariaDB, separate docker on a different server

PHP version:
Docker image nextcloud:latest....

Nextcloud version: (see Nextcloud admin page)
15.0.0.10

Updated from an older Nextcloud/ownCloud or fresh install:
Fresh install

Where did you install Nextcloud from:
Downloaded the nextcloud:latest image from Docker Hub, using Portainer

Signing status:

Signing status
Login as admin user into your Nextcloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results here.

No errors have been found

</details>

**List of activated apps:**
<details>
<summary>App list</summary>

Enabled:
  - accessibility: 1.1.0
  - activity: 2.8.2
  - audioplayer: 2.5.0
  - bruteforcesettings: 1.3.0
  - calendar: 1.6.4
  - checksum: 0.4.2
  - cloud_federation_api: 0.1.0
  - comments: 1.5.0
  - contacts: 3.0.0
  - dav: 1.8.0
  - external: 3.2.0
  - federatedfilesharing: 1.5.0
  - federation: 1.5.0
  - files: 1.10.0
  - files_external: 1.6.0
  - files_pdfviewer: 1.4.0
  - files_sharing: 1.7.0
  - files_texteditor: 2.7.0
  - files_trashbin: 1.5.0
  - files_versions: 1.8.0
  - files_videoplayer: 1.4.0
  - firstrunwizard: 2.4.0
  - gallery: 18.2.0
  - logreader: 2.0.0
  - lookup_server_connector: 1.3.0
  - mail: 0.11.0
  - music: 0.9.3
  - nextcloud_announcements: 1.4.0
  - notes: 2.5.1
  - notifications: 2.3.0
  - oauth2: 1.3.0
  - onlyoffice: 2.1.2
  - password_policy: 1.5.0
  - provisioning_api: 1.5.0
  - serverinfo: 1.5.0
  - sharebymail: 1.5.0
  - spreed: 5.0.0
  - support: 1.0.0
  - survey_client: 1.3.0
  - systemtags: 1.5.0
  - tasks: 0.9.8
  - theming: 1.6.0
  - twofactor_backupcodes: 1.4.1
  - updatenotification: 1.5.0
  - user_saml: 2.1.0
  - workflowengine: 1.5.0
Disabled:
  - admin_audit
  - encryption
  - twofactor_rcdevsopenotp
  - user_external</details>

**Nextcloud configuration:**
<details>
<summary>Config report</summary>

{
    "system": {
        "htaccess.RewriteBase": "\/",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "cloud-dev.jblan.org"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "15.0.0.10",
        "overwrite.cli.url": "https:\/\/cloud-dev.jblan.org",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true
    },
    "apps": {
        "accessibility": {
            "enabled": "yes",
            "installed_version": "1.1.0",
            "types": ""
        },
        "activity": {
            "enabled": "yes",
            "installed_version": "2.8.2",
            "types": "filesystem"
        },
        "audioplayer": {
            "enabled": "yes",
            "installed_version": "2.5.0",
            "types": "filesystem"
        },
        "backgroundjob": {
            "lastjob": "25"
        },
        "bruteforcesettings": {
            "enabled": "yes",
            "installed_version": "1.3.0",
            "types": ""
        },
        "calendar": {
            "enabled": "yes",
            "installed_version": "1.6.4",
            "types": ""
        },
        "checksum": {
            "enabled": "yes",
            "installed_version": "0.4.2",
            "types": "filesystem"
        },
        "cloud_federation_api": {
            "enabled": "yes",
            "installed_version": "0.1.0",
            "types": "filesystem"
        },
        "comments": {
            "enabled": "yes",
            "installed_version": "1.5.0",
            "types": "logging"
        },
        "contacts": {
            "enabled": "yes",
            "installed_version": "3.0.0",
            "types": ""
        },
        "core": {
            "backgroundjobs_mode": "cron",
            "installedat": "1545441990.4587",
            "lastcron": "1545493801",
            "lastupdatedat": "1545441990.4629",
            "oc.integritycheck.checker": "[]",
            "public_files": "files_sharing\/public.php",
            "public_webdav": "dav\/appinfo\/v1\/publicwebdav.php",
            "scss.variables": "db81cddf52fdb3c8ca1e4c859e214124",
            "vendor": "nextcloud"
        },
        "dav": {
            "enabled": "yes",
            "installed_version": "1.8.0",
            "types": "filesystem"
        },
        "external": {
            "enabled": "yes",
            "installed_version": "3.2.0",
            "types": ""
        },
        "federatedfilesharing": {
            "enabled": "yes",
            "installed_version": "1.5.0",
            "types": ""
        },
        "federation": {
            "enabled": "yes",
            "installed_version": "1.5.0",
            "types": "authentication"
        },
        "files": {
            "cronjob_scan_files": "500",
            "enabled": "yes",
            "installed_version": "1.10.0",
            "types": "filesystem"
        },
        "files_external": {
            "enabled": "yes",
            "installed_version": "1.6.0",
            "types": "filesystem"
        },
        "files_pdfviewer": {
            "enabled": "yes",
            "installed_version": "1.4.0",
            "types": ""
        },
        "files_sharing": {
            "enabled": "yes",
            "installed_version": "1.7.0",
            "types": "filesystem"
        },
        "files_texteditor": {
            "enabled": "yes",
            "installed_version": "2.7.0",
            "types": ""
        },
        "files_trashbin": {
            "enabled": "yes",
            "installed_version": "1.5.0",
            "types": "filesystem,dav"
        },
        "files_versions": {
            "enabled": "yes",
            "installed_version": "1.8.0",
            "types": "filesystem,dav"
        },
        "files_videoplayer": {
            "enabled": "yes",
            "installed_version": "1.4.0",
            "types": ""
        },
        "firstrunwizard": {
            "enabled": "yes",
            "installed_version": "2.4.0",
            "types": "logging"
        },
        "gallery": {
            "enabled": "yes",
            "installed_version": "18.2.0",
            "types": ""
        },
        "logreader": {
            "enabled": "yes",
            "installed_version": "2.0.0",
            "types": ""
        },
        "lookup_server_connector": {
            "enabled": "yes",
            "installed_version": "1.3.0",
            "types": "authentication"
        },
        "mail": {
            "enabled": "yes",
            "installed_version": "0.11.0",
            "types": ""
        },
        "music": {
            "enabled": "yes",
            "installed_version": "0.9.3",
            "types": "filesystem"
        },
        "nextcloud_announcements": {
            "enabled": "yes",
            "installed_version": "1.4.0",
            "pub_date": "Sat, 10 Dec 2016 00:00:00 +0100",
            "types": "logging"
        },
        "notes": {
            "enabled": "yes",
            "installed_version": "2.5.1",
            "types": ""
        },
        "notifications": {
            "enabled": "yes",
            "installed_version": "2.3.0",
            "types": "logging"
        },
        "oauth2": {
            "enabled": "yes",
            "installed_version": "1.3.0",
            "types": "authentication"
        },
        "onlyoffice": {
            "enabled": "yes",
            "installed_version": "2.1.2",
            "skey": "1545442188622",
            "types": "filesystem"
        },
        "password_policy": {
            "enabled": "yes",
            "installed_version": "1.5.0",
            "types": ""
        },
        "provisioning_api": {
            "enabled": "yes",
            "installed_version": "1.5.0",
            "types": "prevent_group_restriction"
        },
        "serverinfo": {
            "enabled": "yes",
            "installed_version": "1.5.0",
            "types": ""
        },
        "sharebymail": {
            "enabled": "yes",
            "installed_version": "1.5.0",
            "types": "filesystem"
        },
        "spreed": {
            "enabled": "yes",
            "installed_version": "5.0.0",
            "stun_servers": "[\"stun.nextcloud.com:443\"]",
            "types": "prevent_group_restriction"
        },
        "support": {
            "enabled": "yes",
            "installed_version": "1.0.0",
            "types": ""
        },
        "survey_client": {
            "enabled": "yes",
            "installed_version": "1.3.0",
            "types": ""
        },
        "systemtags": {
            "enabled": "yes",
            "installed_version": "1.5.0",
            "types": "logging"
        },
        "tasks": {
            "enabled": "yes",
            "installed_version": "0.9.8",
            "types": ""
        },
        "theming": {
            "enabled": "yes",
            "installed_version": "1.6.0",
            "types": "logging"
        },
        "twofactor_backupcodes": {
            "enabled": "yes",
            "installed_version": "1.4.1",
            "types": ""
        },
        "updatenotification": {
            "enabled": "yes",
            "installed_version": "1.5.0",
            "types": ""
        },
        "user_saml": {
            "enabled": "yes",
            "installed_version": "2.1.0",
            "types": "authentication"
        },
        "workflowengine": {
            "enabled": "yes",
            "installed_version": "1.5.0",
            "types": "filesystem"
        }
    }
}
</details>

**Are you using external storage, if yes which one:** local/smb/sftp/...

Data are on an NFS Share from FreeNAS. The share is mounted by Alpine and mounted as a BIND volume in the container.

**Are you using encryption:** yes/no

No encryption (yet...)

**Are you using an external user-backend, if yes which one:** LDAP/ActiveDirectory/Webdav/...

No ; users are locally managed by Nextcloud itself

### Client configuration
**Browser:**

Chrome

**Operating system:**

MacOS X

### Logs
#### Web server error log
<details>

No web errors...

</details>
@j-ed
Copy link

j-ed commented Dec 22, 2018

I just did some quick checks and it seems that a general problem exists in the date picker. Independently which date or year you're entering, the month is always reduced by one, e.g. December becomes November, July becomes June, February becomes January, etc.. So dates in January couldn't be entered at all because an Invalid date is returned.

@Heracles31
Copy link
Author

Thanks for your validation and more precise diagnostic.

Happy to see that this is not just another code 18 :-)

@violoncelloCH
Copy link
Member

violoncelloCH commented Dec 25, 2018

is this related to new vue datepicker we use?
cc @nextcloud/contacts and @nextcloud/vue

@georgehrke georgehrke transferred this issue from nextcloud/server Dec 25, 2018
@nextcloud-bot nextcloud-bot added the duplicate This issue or pull request already exists label Dec 25, 2018
@georgehrke
Copy link
Member

@violoncelloCH the title is misleading. It’s not calendar app related but contacts app related. Moved it to the correct repo

@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #277 (Select multiple contacts), #638 ([Vue] Scroll to the selected contact), #278 (The date fields are not working), and #442 (Another display issue).

@nextcloud-bot nextcloud-bot added the bug Something isn't working label Dec 25, 2018
@violoncelloCH
Copy link
Member

ahh, sorry @georgehrke... didn't get this... moving issues is restricted to admins I guess? would be handy if I could do this sometimes, I always ask people to open new issues at the correct repo...

@j-ed
Copy link

j-ed commented Dec 26, 2018

@violoncelloCH I think it is related to the new vue date picker which not only asks to select a date but also a time.

@skjnldsv
Copy link
Member

I'll probably ask a stupid question, but, you do click the ok button, right? Clicking outside the picker will just cancel your action.

@skjnldsv
Copy link
Member

skjnldsv commented Dec 26, 2018

@j-ed the month off by one is fixed already on the contacts app. See the issue #652

@j-ed
Copy link

j-ed commented Dec 26, 2018

@skjnldsv Yes, I clicked the ok button 😉 I've just updated the contacts app to v3.0.1 an checked the date picker behavior of the date of birth and date of death field. The date of birth field allows to select a date only, the date of death field allows to select a date and time. Both fields are still showing the month-1 problem.

@skjnldsv
Copy link
Member

@j-ed so saving is not an issue, but the data saved is wrong, correct?

@j-ed
Copy link

j-ed commented Dec 26, 2018

@skjnldsv Yes, that's right. If you select a date in December, it is stored as it would have been in November. Only selecting a date in January causes an invald date being returned.

December:
grafik
grafik
January:
grafik
grafik

@skjnldsv
Copy link
Member

Which make sense! :)
Thanks a lot @j-ed !

@skjnldsv skjnldsv added 1. to develop Accepted and waiting to be taken care of high High priority and removed duplicate This issue or pull request already exists labels Dec 26, 2018
@skjnldsv skjnldsv added this to the 3.0.2 milestone Dec 26, 2018
@giorgosspam
Copy link

I'm on nextcloud 15 and contact app version 3.0.1. It's a fresh install on raspbian, the stated versions are the initial versions installed (i.e. there never was a previous version of either nextcloud or the contact app on the system).

The following is currently the case:

  • birthdate picker prompts for both date AND time
  • if a date is accepted, the date stored is one month earlier
  • trying to set birthdate to October 31st, 2010 05:00 is rejected with "invalid date" (while e.g. a date in Juli 2010 is fine).

@skjnldsv
Copy link
Member

@giorgosspam yes, this will be fixed on 3.0.2

@MonsieurBon
Copy link

When is v3.0.2 going to be released?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug Something isn't working high High priority
Projects
None yet
Development

No branches or pull requests

8 participants