desktop icon indicating copy to clipboard operation
desktop copied to clipboard

[Bug]: Cannot sync files with modification year before 1970

Open tvwerkhoven opened this issue 2 years ago • 5 comments

⚠️ Before submitting, please verify the following: ⚠️

Bug description

I get an error "Cannot sync due to invalid modification time" for files with timestamps before the year 1970.

I use modification time to sort my (old) photos chronologically, and this doesn't work for photos from before 1970 on next cloud, while both filesystems support it.

N.B. this issue is different than https://github.com/nextcloud/desktop/issues/4378 where nextcloud seems to corrupt modification dates. Here the modification date is untouched but the file is not synced.

Steps to reproduce

  1. Have a file with modification date <1970, e.g. echo "hello world" >> hello.txt && touch -t 197001010000 hello.txt
  2. Try to sync
  3. Client gives an error 'Cannot sync due to invalid modification time'

Expected behavior

  1. Have a file with modification date <1970, e.g. echo "hello world" >> hello.txt && touch -t 197001010000 hello.txt
  2. Try to sync
  3. Client syncs

Which files are affected by this bug

All files with modification time <1970

Operating system

Mac OS

Which version of the operating system you are running.

macOS 12

Package

Appimage

Nextcloud Server version

24.0.6snap1

Nextcloud Desktop Client version

Version 3.6.2 (macOS)

Is this bug present after an update or on a fresh install?

Updated from a minor version (ex. 3.4.2 to 3.4.4)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

Are you using an external user-backend?

  • [ ] Default internal user-backend
  • [ ] LDAP/ Active Directory
  • [ ] SSO - SAML
  • [ ] Other

Nextcloud Server logs

No response

Additional info

No response

tvwerkhoven avatar Nov 21 '22 20:11 tvwerkhoven