Bugzilla – Attachment 126422 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.07 KB, created by
Marcel de Rooy
on 2021-10-18 10:05:34 UTC
(
hide
)
Description:
Bug 29254: Fix date formatting on the additional contents form
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2021-10-18 10:05:34 UTC
Size:
2.07 KB
patch
obsolete
>From cf21fc4503db4ce19529323bed1e74b371cb443d 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 >Content-Type: text/plain; charset=utf-8 > >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> >--- > .../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