Bugzilla – Attachment 126451 Details for
Bug 29254
Setting wrong dates on additional-contents.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29254: Fix date formatting on the additional contents form
Bug-29254-Fix-date-formatting-on-the-additional-co.patch (text/plain), 2.09 KB, created by
Lucas Gass
on 2021-10-18 17:19:29 UTC
(
hide
)
Description:
Bug 29254: Fix date formatting on the additional contents form
Filename:
MIME Type:
Creator:
Lucas Gass
Created:
2021-10-18 17:19:29 UTC
Size:
2.09 KB
patch
obsolete
>From 32be9978c843c4ac12181142d7a701e08537f30f Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 18 Oct 2021 11:50:11 +0200 >Subject: [PATCH] Bug 29254: Fix date formatting on the additional contents > form > >We are sending ymd but flatpickr is expecting a 'dateformat' formatted >date. > >Test plan: >Create a new content, set a date, save, edit again >=> The date must be displayed correctly > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> > >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> >--- > .../prog/en/modules/tools/additional-contents.tt | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt >index 2f74dfbcfc..5de931c3ed 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt >@@ -210,12 +210,12 @@ > [% END %] > <li> > <label for="from">Publication date: </label> >- <input id="from" type="text" name="published_on" size="15" value="[% additional_content.published_on | html %]" class="flatpickrfrom" /> >+ <input id="from" type="text" name="published_on" size="15" value="[% additional_content.published_on | $KohaDates %]" class="flatpickrfrom" /> > <div class="hint">[% INCLUDE 'date-format.inc' %]</div> > </li> > <li> > <label for="to">Expiration date: </label> >- <input id="to" type="text" name="expirationdate" size="15" value="[% additional_content.expirationdate | html %]" class="flatpickrto" /> >+ <input id="to" type="text" name="expirationdate" size="15" value="[% additional_content.expirationdate | $KohaDates %]" class="flatpickrto" /> > <div class="hint"> > [% INCLUDE 'date-format.inc' %] > [% IF category == 'news' %] >-- >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 29254
:
126418
|
126422
| 126451