|
Replies:
6
-
Pages:
1
-
Last Post:
18 Nov 25, 19:59
Last Post By: davidekholm
|
|
|
Posts:
8,013
Registered:
31-Jan-2006
|
|
|
|
Date view picking up date added
Posted:
5 Nov 25, 15:55
|
|
|
|
This is admittedly a fringe case. Most users who choose the date view are feeding it images that have camera dates in them. But if the objects don't have camera dates, the view is sometimes picking up the date the object was added to the project, rather than the file creation or modified date.
And in the case of a PDF with a representing image, it gets even stranger. If the PDF has no RI, its file creation date is used, which is correct. But if it does have an RI, the date the RI was attached is being used.
In the zipped project, there is an image of an Imperial convertible, and there are two identical copies of the Lorem.pdf, one with an RI, one without. The Imperial is from 2024, the PDF is from 2021. The RI is from 2022. (I've tweaked the PDF's to make sure they have exactly the same file dates.)
In the date view, the plain PDF lands in 2021 (correct). The Imperial and the PDF with an RI land in 2025 (not correct).
Edited by: JeffTucker on 18 Nov 2025, 09:09 - attachment removed
|
|
|
Posts:
8,013
Registered:
31-Jan-2006
|
|
|
|
Re: Date view picking up date added
Posted:
11 Nov 25, 14:25
in response to: JeffTucker
|
|
|
|
Unless I'm forgetting about something, the date view should look to the camera date, then the date/time digitized, then to the date/time original, then to date/time, then file modification date. It should always ignore the date added, and it shouldn't pay any attention to the representing image, if there is one.
|
|
|
Posts:
3,804
Registered:
18-Oct-2002
|
|
|
|
Re: Date view picking up date added
Posted:
18 Nov 25, 13:39
in response to: JeffTucker
|
|
|
|
The Date view is using the camera date, then (if not exists) the last modified date. The last modified date of an album object is however also looking at the last modified date of its ".info" property file and uses the later of the two. This is what allows jAlbum to detect if image tools have been applied for instance and then reprocess that image.
So in essence, what you think of "added date" is probably the time you attached that rep image. That in turn updated the property file.
I probably don't think its wise to modify the contract of AlbumObject.getLastModified(), but I could make the date view disregard it and just look at the last modified date of the underlying file as a backup in case the camera date is missing.
|
|
|
Posts:
8,013
Registered:
31-Jan-2006
|
|
|
|
Re: Date view picking up date added
Posted:
18 Nov 25, 14:00
in response to: davidekholm
|
|
|
|
That explains the PDF with an RI attached to it.
The photo of the Imperial is an even more basic case. Nothing strange going on - no RI attached to it. It's a simple JPG that lacks a camera date. But it's the theme image for the album, and I adjusted the crop mask. Hey, presto, the .info file gets touched.
For purposes like this, the date on the .info files shouldn't ever be relevant. If I'm using a date view, I expect objects to land in the proper folders!
|
|
|
Posts:
3,804
Registered:
18-Oct-2002
|
|
|
|
Re: Date view picking up date added
Posted:
18 Nov 25, 14:16
in response to: JeffTucker
|
|
|
|
I've modified v38.1.1 (core update) to just regard the file date as a backup for missing last modified date.This applies to the date view and "order by camera date"
|
|
|
|
Legend
|
|
Forum admins
|
|
Helpful Answer
|
|
Correct Answer
|
|