Bugzilla – Attachment 44746 Details for
Bug 14998
Remove C4::Dates from installer and maintenance folders
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14998: Restore previous behavior
Bug-14998-Restore-previous-behavior.patch (text/plain), 1.67 KB, created by
Jonathan Druart
on 2015-11-11 12:44:01 UTC
(
hide
)
Description:
Bug 14998: Restore previous behavior
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-11-11 12:44:01 UTC
Size:
1.67 KB
patch
obsolete
>From 4cfb5a61cd092f657aa2b45f8765515bed41facd Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 11 Nov 2015 12:40:52 +0000 >Subject: [PATCH] Bug 14998: Restore previous behavior > >We want to convert a us or metric date formatted to the format defined in >the pref. > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > misc/maintenance/fix_accountlines_date.pl | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/misc/maintenance/fix_accountlines_date.pl b/misc/maintenance/fix_accountlines_date.pl >index e0c97f6..470b84b 100755 >--- a/misc/maintenance/fix_accountlines_date.pl >+++ b/misc/maintenance/fix_accountlines_date.pl >@@ -146,14 +146,14 @@ while (my $accountline = $sth->fetchrow_hashref) { > > if ($mode eq 'us') { > if ($description =~ /$US_DATE/) { # mm/dd/yyyy >- my $date = eval { output_pref( { dt => dt_from_string( $1 ), dateonly => 1, dateformat => 'us' } ); }; >+ my $date = output_pref( { dt => dt_from_string( $1, 'us' ), dateonly => 1} ); > print "Converting $1 (us) to " . $date . "\n" if $DEBUG;i > $description =~ s/$US_DATE/$date/; > $updated = 1; > } > } elsif ($mode eq 'metric') { > if ($description =~ /$METRIC_DATE/) { # dd/mm/yyyy >- my $date = eval { output_pref( { dt => dt_from_string( $1 ), dateonly => 1, dateformat => 'metric' } ); }; >+ my $date = output_pref( { dt => dt_from_string( $1, 'metric' ), dateonly => 1} ); > print "Converting $1 (metric) to " . $date . "\n" if $DEBUG; > $description =~ s/$METRIC_DATE/$date/; > $updated = 2; >-- >2.1.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 14998
:
43316
|
44092
|
44415
|
44745
| 44746