[Koha-bugs] [Bug 13813] Remove deprecated module C4::Dates from system

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Apr 14 12:49:42 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13813

--- Comment #82 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Created attachment 37810
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=37810&action=edit
temporary tests

Marc,
If I am not wrong, these tests reflect what you are doing in the patches.
If you have a look, you will see there are some mistakes.

For instance 
  output_pref( { dt => dt_from_string($iso), dateformat => 'iso', dateonly => 1
} );
won't return the same as
  C4::Dates->new( $iso, 'iso' )->output("iso");

But 
  output_pref( { dt => dt_from_string({ dt => $iso, dateformat => 'iso' }),
dateformat => 'iso', dateonly => 1 } );

will :)

You should try to list exhaustively all existing patterns of C4::Dates you will
replace and try to find their correct replacements.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list