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

auto upload of older files deletes the creation date of those files #6406

Closed
lxto opened this issue Jul 3, 2020 · 11 comments
Closed

auto upload of older files deletes the creation date of those files #6406

lxto opened this issue Jul 3, 2020 · 11 comments
Labels
bug needs info Waiting for info from user(s). Issues with this label will auto-stale. stale

Comments

@lxto
Copy link

lxto commented Jul 3, 2020

Steps to reproduce

  1. on creation of auto uploads older files lose their creation date

Expected behaviour

  • creation date of uploaded older files should be preserved

Actual behaviour

  • creation date is replaced by by current date
@lxto lxto added the bug label Jul 3, 2020
@tobiasKaminsky
Copy link
Member

Where do you see the creation date? On server it should still show the old date?

@tobiasKaminsky tobiasKaminsky added the needs info Waiting for info from user(s). Issues with this label will auto-stale. label Jul 3, 2020
@invario
Copy link

invario commented Jul 3, 2020

Android 3.12.1 RC1 and I'm experiencing this. It's made apparent when you go browse into the folder in NextCloud and sort with newest first and see files from years back on top mixed up.

@invario
Copy link

invario commented Jul 3, 2020

Screenshot_20200703-132212_Nextcloud

@tobiasKaminsky
Copy link
Member

Can you test if the same happens when manually uploading a file?

@invario
Copy link

invario commented Jul 6, 2020

Just did a manual upload of one file, date appears to have been retained correctly.
Screenshot_20200706-113252_Nextcloud

@tobiasKaminsky
Copy link
Member

This seems not to be the creation date, but the last modified date.
Can you verify if this is in sync with server value?

Two cases:

  1. manual upload
  • have a file with modification date yesterday
  • upload it
  • see "yesterday" in web ui and NC app
  1. have old images in DCIM/camera folder
  • enable auto upload
  • files get uploaded
  • see "now" in web ui and NC app

Can you verify that this 2) is wrong?

@tobiasKaminsky
Copy link
Member

As far as I can see there is no difference between manual and auto upload…

@invario
Copy link

invario commented Jul 26, 2020

Here's what I did today. I actually completed purged the user from NextCloud and wiped the app off my phone to force everything to start over for AutoUpload.

The problem is reproduced as a result and here are the (3) screenshots to show what's happening:

Screenshot from my phone's file manager showing the actual file timestamp as 06/16/2020 (it got reset due to moving the file with Samsung Gallery to my SD card.
From Phone File Manager
)

Screenshot from my phone's NextCloud showing that after it uploaded, NextCloud has changed the file timestamp
From Nextcloud

Screenshot from a shell window into my FreeNAS NextCloud jail. Simple "ls -l" for the files. There are MANY more files that have this same behavior as 20190609_114405_016.jpg and 20190609_114405_032.jpg
From FreeNAS shell

It resets the timestamp to when it was uploaded. (In my screenshots, that is today, July 25).

@invario
Copy link

invario commented Aug 18, 2020

Hmm I wonder if this is actually a problem with the server. I tried using a different app (FolderSync) to sync with my NextCloud server and the date on all the files is the time of upload instead of the original modified date. Very frustrating.

@invario
Copy link

invario commented Aug 23, 2020

So after Googling some, it appears this has been discussed (and complained about) extensively.

nextcloud/server#15192

https://www.reddit.com/r/NextCloud/comments/d86j07/wrong_modified_dates/

Very inconsistent handling of modified date, dependent on several factors including the app itself.

@stale
Copy link

stale bot commented Sep 20, 2020

This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

@stale stale bot added the stale label Sep 20, 2020
@stale stale bot closed this as completed Oct 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug needs info Waiting for info from user(s). Issues with this label will auto-stale. stale
Projects
None yet
Development

No branches or pull requests

3 participants