Bugzilla – Attachment 103137 Details for
Bug 25133
Specify Due date changes from PM to AM if library has their TimeFormat set to 12hr
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25133: Fix time part of due date for 12hr
Bug-25133-Fix-time-part-of-due-date-for-12hr.patch (text/plain), 2.07 KB, created by
Jonathan Druart
on 2020-04-17 10:12:15 UTC
(
hide
)
Description:
Bug 25133: Fix time part of due date for 12hr
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-04-17 10:12:15 UTC
Size:
2.07 KB
patch
obsolete
>From 9fd2dd1ca3905037d3f36f20c41df45e6a974d25 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 17 Apr 2020 12:11:25 +0200 >Subject: [PATCH] Bug 25133: Fix time part of due date for 12hr > >--- > koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc | 6 ++++++ > koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 2 +- > 2 files changed, 7 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc >index 9b266b61a9..82e3826149 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc >@@ -122,6 +122,12 @@ jQuery(function($){ > showMonthAfterYear: false, > yearSuffix: ''}; > $.datepicker.setDefaults($.datepicker.regional['']); >+ $.timepicker.regional[''] = { >+ timeFormat: "[% IF Koha.Preference('TimeFormat') == '12hr' %]hh:mm TT[% ELSE %]HH:mm[% END %]", >+ amNames: ['AM', 'A'], >+ pmNames: ['PM', 'P'], >+ }; >+ $.timepicker.setDefaults($.timepicker.regional['']); > }); > > /* jQuery Validator plugin custom method >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >index 9087ccb03d..7423164850 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >@@ -236,7 +236,7 @@ > > [% IF ( INVALID_DATE ) %] > <p> >- <input type="text" size="13" id="duedatespec" name="duedatespec" value="[% duedatespec | html %]" /> >+ <input type="text" size="13" id="duedatespec" name="duedatespec" value="[% duedatespec | $KohaDates as_due_date => 1 %]" /> > <label for="duedatespec">Due date</label> > </p> > [% ELSE %] >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 25133
:
103137
|
103236
|
103366
|
103367
|
103368
|
103369
|
103370
|
103371
|
104228
|
104229
|
104230
|
104260
|
104269