You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PhotoListView should be ordered by the "Date Picture Taken" not by "lastModifiedAt". Otherwise the timeline gets mixed up.
I had this issue with an iphone. When I did a sync with kDrive from a date in the past it happened that some picture had not the same date for "Date Picture Taken" v.s. "lastModifiedAt" and were therefore wrongly displayed in the timeline. That's why I stumbled upon this.
Does this behaviour maybe have to do with this code part (I am not an experienced coder):
The created_at of a file can be null, unlike the last_modified_at which is mandatory. (if a file is uploaded with the browser for example we do not have the date of creation and some applications that create files do not inform this date either)
So we can't sort by creation date.
To shoot by "Date Picture Taken", the api has to extract the EXIF of all the pictures of a drive. What is currently not the case. But we think about it.
The fileCreatedAt shown on the link can also be null, it's not mandatory information. And it is not retrieved from the EXIF, but from the MediaStore of android.
And it wouldn't change the fact that if the file was uploaded from the webapp, browsers don't communicate the creation date of a file.
So we can't sort by creation date because it can be null.
A solution that could be considered is to put the modification date of a file as creation date if it is null.
The PhotoListView should be ordered by the "Date Picture Taken" not by "lastModifiedAt". Otherwise the timeline gets mixed up.
I had this issue with an iphone. When I did a sync with kDrive from a date in the past it happened that some picture had not the same date for "Date Picture Taken" v.s. "lastModifiedAt" and were therefore wrongly displayed in the timeline. That's why I stumbled upon this.
Does this behaviour maybe have to do with this code part (I am not an experienced coder):
ios-kDrive/kDrive/UI/Controller/Menu/PhotoList/PhotoListViewModel.swift
Line 173 in ef39090
The text was updated successfully, but these errors were encountered: