This question is answered. Helpful answers available: 1. Correct answers available: 1.


Permlink Replies: 9 - Pages: 1 - Last Post: 1 Jan 25, 18:18 Last Post By: davidekholm
phil44

Posts: 128
Registered: 18-Jun-2010
Possible bug when using custom dates formats
Posted: 28 Dec 24, 16:18
 
  Click to reply to this thread Reply
Attachment After.jpg (22.8 KB)
Attachment Before.jpg (10.9 KB)
I've noticed this since the installation of the version 36.1:

In an album's settings, if I set a custom date format (in the "Advanced" tab), for example "d/MM/y HH:mm" instead of "dd/MM/y HH:mm", the modification indicator appears in white in the lower left corner, and if I click on it, the Changes window appears, with the detail shown in the Before.jpg capture, that's good!

However, without building the project, as soon as I switch to another project, saving the changes of the initial project, and I return to this one, the Changes window shows something different, cf. the After.jpg capture. It seems that the date format change is described twice :(

Then, I build the project, and the Changes indicator remains in place. The Changes windows always shows the dateFormatAsObject parameter as modified :(

And from this point, it seems impossible to get rid of this modification: dateFormatAsObject.
RobM

Posts: 3,938
Registered: 4-Aug-2006
Re: Possible bug when using custom dates formats
Posted: 28 Dec 24, 17:05   in response to: phil44 in response to: phil44
 
  Click to reply to this thread Reply
After making the album have you done a save settings? If not, do so then change project and then load the first project again - has the asterisk gone?

See https://jalbum.net/help/en/jAlbum/Welcome#Change_indicator

Edited by: RobM on 28 Dec 2024, 16:06
Added link
phil44

Posts: 128
Registered: 18-Jun-2010
Re: Possible bug when using custom dates formats
Posted: 28 Dec 24, 17:31   in response to: phil44 in response to: phil44
 
  Click to reply to this thread Reply
That's what I did:

1) I create the album, the asterisk does not disappear
2) I save the project, the asterisk is still there,
3) I change to another project and reload the first one, the asterisk comes back.

Strangely, when I change a setting, the name of that setting appears when you click on the asterisk (e.g. dateFormat ), but I don't see which setting dateFormatAsObject refers to.

And I must add that I never modified the date format with the value reported in the Changes window...
RobM

Posts: 3,938
Registered: 4-Aug-2006
Re: Possible bug when using custom dates formats
Posted: 28 Dec 24, 20:07   in response to: phil44 in response to: phil44
 
  Click to reply to this thread Reply
It does appear to be a bug. I've tried various date formats and get the same result. The only one that works is to leave the entry blank so it uses the standard date format for the region.
RobM

Posts: 3,938
Registered: 4-Aug-2006
Re: Possible bug when using custom dates formats
Posted: 28 Dec 24, 20:20   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
The problem was introduced after version 36, which works as expected - Change date format, save project, switch project, return to previous project, make album and the asterisk disappears.
davidekholm

Posts: 3,689
Registered: 18-Oct-2002
Re: Possible bug when using custom dates formats
Posted: 31 Dec 24, 12:20   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
This could be a side effect after switching to Java 23 with jAlbum v36.1

So, is this a problem that only appears if one has custom date formats entered under Preferences? How do I reproduce this easily?
RobM

Posts: 3,938
Registered: 4-Aug-2006
Re: Possible bug when using custom dates formats
Posted: 31 Dec 24, 13:15   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
The problem is with a change of date format under settings > General > Date format.
The only entry that works is the default.
davidekholm

Posts: 3,689
Registered: 18-Oct-2002
Re: Possible bug when using custom dates formats
Posted: 31 Dec 24, 15:31   in response to: RobM in response to: RobM
Helpful
  Click to reply to this thread Reply
I get it. The bug got introduced as a side effect of Java 23 adding a "toString" method to the SimpleDateFormat class. Now fixed in v36.1.1. Just do a core update to have this resolved.
phil44

Posts: 128
Registered: 18-Jun-2010
Re: Possible bug when using custom dates formats
Posted: 31 Dec 24, 16:57   in response to: phil44 in response to: phil44
 
  Click to reply to this thread Reply
It’s perfect now, thanks!

A little in advance, best wishes to the whole team for the new year to come!
davidekholm

Posts: 3,689
Registered: 18-Oct-2002
Re: Possible bug when using custom dates formats
Posted: 1 Jan 25, 18:18   in response to: phil44 in response to: phil44
 
  Click to reply to this thread Reply
You're welcome!
Legend
Forum admins
Helpful Answer
Correct Answer

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