Bug 40759 - Wrong date format in subscription brief history in OPAC
Summary: Wrong date format in subscription brief history in OPAC
Status: Signed Off
Alias: None
Product: Koha
Classification: Unclassified
Component: OPAC (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low normal
Assignee: Jonathan Druart
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-09-05 15:38 UTC by Katrin Fischer
Modified: 2025-09-11 12:13 UTC (History)
1 user (show)

See Also:
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 (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

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>