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: Signed Off --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: jonathan.druart
Version: unspecified   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: Trivial patch Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
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

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>