Bug 40759

Summary: Wrong date format in subscription brief history in OPAC
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: OPACAssignee: Jonathan Druart <jonathan.druart>
Status: Pushed to oldstable --- QA Contact: Marcel de Rooy <m.de.rooy>
Severity: normal    
Priority: P5 - low CC: fridolin.somers, jonathan.druart, m.de.rooy
Version: unspecified   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Crowdfunding goal: 0
Patch complexity: Trivial patch Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
25.11.00,25.05.04,24.11.10
Circulation function:
Attachments: Bug 40759: Correctly format dates in subscription brief history in OPAC
Bug 40759: Correctly format dates in subscription brief history in OPAC
Bug 40759: Correctly format dates in subscription brief history in OPAC

Description Katrin Fischer 2025-09-05 15:38:03 UTC
The brief history of a subscription shows the dates all in "database format" yyyy-mm-dd instead of using the formatting set in the DateFormat system preference. Dates on the subscription tab in the details page and full history are showing correctly. 

To test:
* Add a subscription and receive 1-3 issues
* Set the DateFormat system preference to format unlike yyyy-mm-dd
* Go to the OPAC
  * Verify dates show corectly on the subscriptions tab itself
* Click on more details
  * Verify dates how correctly in the full history
  * Verify the dates on the brief history are broken.

/cgi-bin/koha/opac-serial-issues.pl?

Example:

Subscription information for ...

The current subscription began on 2024-01-01 and is issued every month for 12 issues

The first subscription was started on 2024-01-01
Comment 1 Jonathan Druart 2025-09-08 14:01:38 UTC
Created attachment 186259 [details] [review]
Bug 40759: Correctly format dates in subscription brief history in OPAC

Test plan:
To test:
* Add a subscription and receive 1-3 issues
* Set the DateFormat system preference to format unlike yyyy-mm-dd
* Go to the OPAC
  * Verify dates show corectly on the subscriptions tab itself
* Click on more details
  * Verify dates how correctly in the full history
  * Verify the dates on the brief history show correctly.
Comment 2 Katrin Fischer 2025-09-08 14:04:57 UTC
Thanks a lot! Will try to come back to this.
Comment 3 Katrin Fischer 2025-09-11 12:13:05 UTC
Created attachment 186373 [details] [review]
Bug 40759: Correctly format dates in subscription brief history in OPAC

Test plan:
To test:
* Add a subscription and receive 1-3 issues
* Set the DateFormat system preference to format unlike yyyy-mm-dd
* Go to the OPAC
  * Verify dates show corectly on the subscriptions tab itself
* Click on more details
  * Verify dates how correctly in the full history
  * Verify the dates on the brief history show correctly.

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Comment 4 Marcel de Rooy 2025-09-19 09:28:27 UTC
Created attachment 186613 [details] [review]
Bug 40759: Correctly format dates in subscription brief history in OPAC

Test plan:
To test:
* Add a subscription and receive 1-3 issues
* Set the DateFormat system preference to format unlike yyyy-mm-dd
* Go to the OPAC
  * Verify dates show corectly on the subscriptions tab itself
* Click on more details
  * Verify dates how correctly in the full history
  * Verify the dates on the brief history show correctly.

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Comment 5 Lucas Gass (lukeg) 2025-09-19 14:45:19 UTC
Nice work everyone!

Pushed to main for 25.11
Comment 6 Paul Derscheid 2025-09-25 16:31:04 UTC
Nice work everyone!

Pushed to 25.05.x
Comment 7 Fridolin Somers 2025-10-16 10:11:00 UTC
Pushed to 24.11.x for 24.11.10