Bug 40759 - Wrong date format in subscription brief history in OPAC
Summary: Wrong date format in subscription brief history in OPAC
Status: Pushed to oldstable
Alias: None
Product: Koha
Classification: Unclassified
Component: OPAC (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low normal
Assignee: Jonathan Druart
QA Contact: Marcel de Rooy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-09-05 15:38 UTC by Katrin Fischer
Modified: 2025-10-16 10:11 UTC (History)
3 users (show)

See Also:
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 (3.09 KB, patch)
2025-09-08 14:01 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 40759: Correctly format dates in subscription brief history in OPAC (3.14 KB, patch)
2025-09-11 12:13 UTC, Katrin Fischer
Details | Diff | Splinter Review
Bug 40759: Correctly format dates in subscription brief history in OPAC (3.24 KB, patch)
2025-09-19 09:28 UTC, Marcel de Rooy
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
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