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

Invalid Date for photos added on nextcloud to nextcloud transfer #1508

Closed
rougerouter opened this issue Nov 27, 2022 · 2 comments
Closed

Invalid Date for photos added on nextcloud to nextcloud transfer #1508

rougerouter opened this issue Nov 27, 2022 · 2 comments
Labels
0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working

Comments

@rougerouter
Copy link

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Browser log

Open your console, reload your page and/or do the action leading to this issue and copy/paste the log in this thread.
How to access your browser console (Click to expand)

Chrome

  • Press either CTRL + SHIFT + J to open the “console” tab of the Developer Tools.
  • Alternative method:
    1. Press either CTRL + SHIFT + I or F12 to open the Developer Tools.
    2. Click the “console” tab.

Safari

  • Press CMD + ALT + I to open the Web Inspector.
  • See Chrome’s step 2. (Chrome and Safari have pretty much identical dev tools.)

IE9

  1. Press F12 to open the developer tools.
  2. Click the “console” tab.

Firefox

  • Press CTRL + SHIFT + K to open the Web console (COMMAND + SHIFT + K on Macs).
  • or, if Firebug is installed (recommended):
    1. Press F12 to open Firebug.
    2. Click on the “console” tab.

Opera

  1. Press CTRL + SHIFT + I to open Dragonfly.
  2. Click on the “console” tab.

Additional context
Add any other context about the problem here.

@rougerouter rougerouter added 0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working labels Nov 27, 2022
@gruda74
Copy link

gruda74 commented Mar 31, 2023

I realized issues with date handling on Nextcloud Photos with images uploaded from my iPhone.
I hope my detailed description could help in fixing.

To Reproduce Steps:

  1. Upload photos from iPhone (11 - iOS 16.02) to my self hosted Nextcloud (version 25.0.5 - running on Ubuntu 22.0.4)
  2. Open photos with iPhone App (version 4.7.0.23) and select 'Sort by newest' option:
    Some photos taken in 12.2022 are shown as photos from 03.2023 while others are shown correctly in 12.2022.
    2/b.) When selecting the 'Sort by name (from Z to A)' option the order is correct.
  3. Check the photos on the Nextcloud Photos web UI (Chrome and Edge behavior is the same):
    Some photos taken in 12.2022 are shown as photos from 03.2023 while others are shown correctly in 12.2022.
    3/b.) On the web UI there is no 'Sort by name (from Z to A)' option.

Some more details about two sample photos:

A.) Problematic photo from 12.2022 shown together with 03.2023 photos:
File name on iPhone: IMG_8292.JPG
File name on Nextcloud storage: '22-12-30 20-21-11 8292.jpg'
Exif Info:
File Modification Date/Time : 2023:03:26 18:44:54+00:00
File Access Date/Time : 2023:03:31 15:58:08+00:00
File Inode Change Date/Time : 2023:03:31 15:31:24+00:00
...
Modify Date : 2022:12:30 20:21:11
Host Computer : iPhone 11
...
Date/Time Original : 2022:12:30 20:21:11
Create Date : 2022:12:30 20:21:11
...

B.) Photo from 12.2022 shown correctly together with 12.2022 photos:
File name on iPhone: IMG_8277.JPG
File name on Nextcloud storage: '22-12-28 12-48-55 8277.jpg'
Exif Info:
File Modification Date/Time : 2022:12:28 20:11:58+00:00
File Access Date/Time : 2023:03:31 17:23:22+00:00
File Inode Change Date/Time : 2023:03:31 15:30:30+00:00
...
Modify Date : 2022:12:28 12:48:55
Host Computer : iPhone 11
...
Date/Time Original : 2022:12:28 12:48:55
Create Date : 2022:12:28 12:48:55
...

Conclusion:
1.) Nextcloud gets correctly the creation date and this information is written into the file name used by Nextcloud.
2.) Nextcloud is using the Exif info 'File Modification Date/Time' to time sort the images what is causing problem by modified images.

@joshtrichards
Copy link
Member

Hi @rougerouter & @gruda74 - Thanks for your reports. This topic (if I'm understanding your respective reports) is already being tracked in #87 and #397. Please close out this Issue to avoid confusion / duplicate work (unless you have a good reason to keep it separate that I'm overlooking).

@joshtrichards joshtrichards closed this as not planned Won't fix, can't repro, duplicate, stale Oct 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants