Bugzilla – Attachment 71498 Details for
Bug 20178
Fix output_pref with dateformat=iso
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20178: Fix test - iso formatted dates should not use timeformat
Bug-20178-Fix-test---iso-formatted-dates-should-no.patch (text/plain), 1.02 KB, created by
Jonathan Druart
on 2018-02-12 19:06:45 UTC
(
hide
)
Description:
Bug 20178: Fix test - iso formatted dates should not use timeformat
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-02-12 19:06:45 UTC
Size:
1.02 KB
patch
obsolete
>From b22e48f60d78c7d266d78fae9e9e0ac97965f87d Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 12 Feb 2018 16:06:18 -0300 >Subject: [PATCH] Bug 20178: Fix test - iso formatted dates should not use > timeformat > >--- > t/DateUtils.t | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/t/DateUtils.t b/t/DateUtils.t >index b0c8b054ec..a6a8cb4d77 100755 >--- a/t/DateUtils.t >+++ b/t/DateUtils.t >@@ -44,7 +44,7 @@ $date_string = output_pref({ dt => $dt, dateformat => 'iso', timeformat => '24hr > cmp_ok $date_string, 'eq', '2011-06-16 12:00', 'iso output'; > > $date_string = output_pref({ dt => $dt, dateformat => 'iso', timeformat => '12hr' }); >-cmp_ok $date_string, 'eq', '2011-06-16 12:00 PM', 'iso output 12hr'; >+cmp_ok $date_string, 'eq', '2011-06-16 12:00', 'iso output timeformat is not taken into account for iso format'; > > $date_string = output_pref({ dt => $dt, dateformat => 'rfc3339' }); > like($date_string, qr/2011-06-16T12:00:00\+|-\d\d:\d\d/, 'RFC3339 output'); >-- >2.11.0
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 20178
:
71469
|
71498
|
71593
|
71594