Bug 33261

Summary: Dates for issues on subscription detail page display unformatted
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: SerialsAssignee: Lucas Gass <lucas>
Status: CLOSED FIXED QA Contact: Katrin Fischer <katrin.fischer>
Severity: minor    
Priority: P5 - low CC: lucas
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
23.05.00,22.11.05
Attachments: Bug 33261: Format dates in subscription_issues table
Bug 33261: Format dates in subscription_issues table
Bug 33261: Format dates in subscription_issues table

Description Katrin Fischer 2023-03-17 09:23:13 UTC
The dates in the issues tab of the subscription detail page display as "YYYY-MM-DD" independent of the DateFormat system preference setting.

To test:
* Add a subscription
* Receive some issues
* Go to the subscription detail page, issues tab
* Verify the dates there display as YYYY-MM-DD
* Change DateFormat system preference setting, nothing changes.
Comment 1 Lucas Gass 2023-03-17 14:35:24 UTC
Created attachment 148352 [details] [review]
Bug 33261: Format dates in subscription_issues table

To test:
* Add a subscription
* Receive some issues
* Go to the subscription detail page, issues tab
* Verify the dates there display as YYYY-MM-DD
* Change DateFormat system preference setting, nothing changes.
* Apply patch
* Date should now be formatted in the way specified in the DateFormat system preference
Comment 2 David Nind 2023-04-03 21:08:36 UTC
Created attachment 149108 [details] [review]
Bug 33261: Format dates in subscription_issues table

To test:
* Add a subscription
* Receive some issues
* Go to the subscription detail page, issues tab
* Verify the dates there display as YYYY-MM-DD
* Change DateFormat system preference setting, nothing changes.
* Apply patch
* Date should now be formatted in the way specified in the DateFormat system preference

Signed-off-by: David Nind <david@davidnind.com>
Comment 3 Katrin Fischer 2023-04-09 11:50:13 UTC
Created attachment 149356 [details] [review]
Bug 33261: Format dates in subscription_issues table

To test:
* Add a subscription
* Receive some issues
* Go to the subscription detail page, issues tab
* Verify the dates there display as YYYY-MM-DD
* Change DateFormat system preference setting, nothing changes.
* Apply patch
* Date should now be formatted in the way specified in the DateFormat system preference

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Comment 4 Tomás Cohen Arazi 2023-04-12 14:44:27 UTC
Pushed to master for 23.05.

Nice work everyone, thanks!
Comment 5 Matt Blenkinsop 2023-04-17 09:11:16 UTC
Nice work everyone!

Pushed to stable for 22.11.x
Comment 6 Lucas Gass 2023-05-05 22:00:54 UTC
Doesn't apply clean to 22.05.x, no backport.