Permlink Replies: 21 - Pages: 2 [ 1 2 | Next ] - Last Post: 17 Nov 23, 10:05 Last Post By: brango Threads: [ Previous | Next ]
brango

Posts: 20
Registered: 15-Aug-2017
Incorrect date range in the generated album
Posted: 13 Nov 23, 16:50
  Click to reply to this thread Reply
Having an album with photos with the dates in the range 1.10.2023 to 10.10.2023. Date range in the album is generated as expected (1.-10.10.2023).

As soon as the Theme image is edited (e.g. the selection is moved), the generated date is not correct, the current date is used on the place of the to date. (1.10.-13.11.2023).

JAlbum version: 32.1.3
Skin: Tiger/Linen

Edited by: brango on 13 Nov 2023, 16:52
JeffTucker

Posts: 7,942
Registered: 31-Jan-2006
Re: Incorrect date range in the generated album
Posted: 13 Nov 23, 20:11   in response to: brango in response to: brango
  Click to reply to this thread Reply
I can't replicate that. The "folder mod dates" consistently use the camera dates of the images in the folder. Under Tiger > Site > Hero > Title > ${folderModDate}, have you chosen Camera date range?
brango

Posts: 20
Registered: 15-Aug-2017
Re: Incorrect date range in the generated album
Posted: 14 Nov 23, 09:40   in response to: JeffTucker in response to: JeffTucker
  Click to reply to this thread Reply
Yes, it is configured like this. And it works until the Theme image is touched (the highlight bar is moved to select the part of the image for displayig). As soon as the theme image is touched, the date changes to today's date.

Edited by: brango on 14 Nov 2023, 09:40
brango

Posts: 20
Registered: 15-Aug-2017
Re: Incorrect date range in the generated album
Posted: 14 Nov 23, 10:45   in response to: brango in response to: brango
  Click to reply to this thread Reply
I have reproduced the problem as folows:
  • the album has 2 images with the date 22.4.2018
  • I have generated the album without change of the theme image (see the attached screenshot 'web correct date.png')
  • I have changed the theme image by moving the selection downwards
  • I have generated the album again (see the attached screenshot 'web incorrect date.png'). Also see the changed theme image in the screenshot.

I hope that it helps.
JeffTucker

Posts: 7,942
Registered: 31-Jan-2006
Re: Incorrect date range in the generated album
Posted: 14 Nov 23, 13:26   in response to: brango in response to: brango
  Click to reply to this thread Reply
When I do exactly that, the date doesn't change.

Please attach the project file - jalbum-settings.jap - from a project that displays this behavior.
brango

Posts: 20
Registered: 15-Aug-2017
Re: Incorrect date range in the generated album
Posted: 14 Nov 23, 15:26   in response to: JeffTucker in response to: JeffTucker
  Click to reply to this thread Reply
The project file
JeffTucker

Posts: 7,942
Registered: 31-Jan-2006
Re: Incorrect date range in the generated album
Posted: 14 Nov 23, 15:40   in response to: brango in response to: brango
  Click to reply to this thread Reply
I still don't get any change in the folder mod date. I've got two images from the same day - Feb.13, 2012, and the mod date displays correctly - in European standard form, 13.2.2012. I change the crop focus for the theme image, make the album again, and it's still exactly the same date. The theme image has changed, of course.

Same result if I add a few more photos from the same trip. It displays 13-16.2.2012, for example, and that remains the same, no matter what else I do.

All I can suggest is that you do a full uninstall/reinstall of jAlbum, and then reinstall the skin.
brango

Posts: 20
Registered: 15-Aug-2017
Re: Incorrect date range in the generated album
Posted: 14 Nov 23, 16:06   in response to: JeffTucker in response to: JeffTucker
  Click to reply to this thread Reply
Unfortunatelly it dod not help.
Is there any possibility to debug the skin?
JeffTucker

Posts: 7,942
Registered: 31-Jan-2006
Re: Incorrect date range in the generated album
Posted: 14 Nov 23, 16:19   in response to: brango in response to: brango
  Click to reply to this thread Reply
We can't debug something that we can't replicate.
brango

Posts: 20
Registered: 15-Aug-2017
Re: Incorrect date range in the generated album
Posted: 14 Nov 23, 16:29   in response to: JeffTucker in response to: JeffTucker
  Click to reply to this thread Reply
I mean on my side, of course.
Laza

Posts: 1,531
Registered: 6-Sep-2005
Re: Incorrect date range in the generated album
Posted: 14 Nov 23, 16:55   in response to: brango in response to: brango
  Click to reply to this thread Reply
The skin is using jAlbum's JAlbumUtilities.getDeepCameraDates(folder); function, so even if you could debug the skin, it wouldn't help.

You can use the System console to check what jAlbum returns: (first select the folder in quesion) (use BeanShell)
import java.text.SimpleDateFormat;
SimpleDateFormat format = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
DateRange dr = JAlbumUtilities.getDeepCameraDates(selectedObjects.get(0));
print(format.format(new Date(dr.first)) + " - " + format.format(new Date(dr.last)));
brango

Posts: 20
Registered: 15-Aug-2017
Re: Incorrect date range in the generated album
Posted: 15 Nov 23, 10:16   in response to: Laza in response to: Laza
  Click to reply to this thread Reply
I have executed the script in the album with 7 images with dates in range 2018-08-25T19:33:29 - 2018-08-25T19:34:22
Output of the script after album is created (the crop focus kept unchanged):
25/08/2018 19:33:29 - 25/08/2018 19:34:22

The crop focus changed:
25/08/2018 19:33:29 - 15/11/2023 10:11:15

Edited by: brango on 15 Nov 2023, 10:17
brango

Posts: 20
Registered: 15-Aug-2017
Re: Incorrect date range in the generated album
Posted: 15 Nov 23, 10:40   in response to: Laza in response to: Laza
  Click to reply to this thread Reply
Further investigation shows that the .jalbum/.info file changes.
After the crop focus have been changed, the lastCameraDate changes to the current date-time.
See the attached .info files.

Additionally, the timestamp in the .info is changed as soon as the album is generated or the example script have been executed.

After change of the change date of all files in the .jalbum directory to the date of the last image the script delivers the correct date range.

Edited by: brango on 15 Nov 2023, 10:52
JeffTucker

Posts: 7,942
Registered: 31-Jan-2006
Re: Incorrect date range in the generated album
Posted: 15 Nov 23, 13:55   in response to: brango in response to: brango
  Click to reply to this thread Reply
brango wrote:
After the crop focus have been changed, the lastCameraDate changes to the current date-time.

Clearly, that should not be happening, since no images have been added. There are no new camera dates.

This still feels like the result of an old method being invoked by a leftover .jar file somewhere. When I asked you to do a full uninstall/reinstall of jAlbum, did you follow all of the steps in this thread?

https://jalbum.net/forum/thread.jspa?threadID=35746

Don't skip anything, and don't second-guess any of it.
brango

Posts: 20
Registered: 15-Aug-2017
Re: Incorrect date range in the generated album
Posted: 15 Nov 23, 15:58   in response to: JeffTucker in response to: JeffTucker
  Click to reply to this thread Reply
The JAlbum was installed on my Debian system from a DEB-file.

I have reinstalled it 'Debian-way':
  • removed the package: apt purge jalbum
  • eventually deleted the /usr/share/jalbum
  • deleted the bin directory from ~/.jalbum
  • installed the package JAlbum again from the DEB-file

Is it possible that the DEB-file is broken?
Shall I eventually try other way of installing the JAlbum?
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums