Bugzilla – Attachment 101772 Details for
Bug 20936
Holds history for patrons in OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20936: (QA follow-up) Only add timezone if date-time
Bug-20936-QA-follow-up-Only-add-timezone-if-date-t.patch (text/plain), 1.29 KB, created by
Martin Renvoize
on 2020-03-25 20:46:13 UTC
(
hide
)
Description:
Bug 20936: (QA follow-up) Only add timezone if date-time
Filename:
MIME Type:
Creator:
Martin Renvoize
Created:
2020-03-25 20:46:13 UTC
Size:
1.29 KB
patch
obsolete
>From 501efacc5a5a28bf28d17c5eb294d51f64f2168f Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Wed, 25 Mar 2020 20:41:45 +0000 >Subject: [PATCH] Bug 20936: (QA follow-up) Only add timezone if date-time > >This patch prevents a timezone from being assigned to the js moment if >the input string is only at the full-date and not date-time resolution >--- > koha-tmpl/opac-tmpl/bootstrap/en/includes/js-date-format.inc | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/js-date-format.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/js-date-format.inc >index 9381684bc6..be53e0ba52 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/js-date-format.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/js-date-format.inc >@@ -27,7 +27,7 @@ > window.$date = function(value, options) { > var tz = (options&&options.tz)||def_tz; > var m = moment(value); >- if(tz) m.tz(tz); >+ if((m.creationData.format !== 'YYYY-MM-DD')&&tz) m.tz(tz); > > var dateformat = (options&&options.dateformat)||def_date_format; > var withtime = (options&&options.withtime)||false; >@@ -59,4 +59,4 @@ > } > > })(); >-</script> >\ No newline at end of file >+</script> >-- >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 20936
:
98629
|
98630
|
100115
|
100116
|
100117
|
100205
|
100206
|
100207
|
100471
|
100472
|
100473
|
100474
|
101724
|
101725
|
101726
|
101727
|
101772
|
101915
|
102166
|
103948
|
103949
|
103950
|
103951
|
104040
|
104041
|
104466
|
104467
|
105131
|
112667
|
112668
|
112730
|
112731
|
112732
|
112733
|
113446
|
113447
|
113448
|
113449