Bug 24840: Replace DateTime->now with dt_from_string
authorNick Clemens <nick@bywatersolutions.com>
Thu, 26 Mar 2020 11:05:32 +0000 (11:05 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 8 Apr 2020 10:54:23 +0000 (11:54 +0100)
commit6ac037f817def256c85706413036bee3f78ed40e
tree6cca1fac1e4cffab0224509149d26e9ef1bb74a4
parentc878a9e825ab740c2d1bc820875485cc816ed492
Bug 24840: Replace DateTime->now with dt_from_string

We should use Koha::DateUtils instead of Date::Time directly

This patch simplay replaces calls to now() with a call to dt_from_string()
which does effectively the same thing.

Probably reading the code and verifying changes is sufficient but...

To test:
1 - confirm the files all compile
2 - confirm all tests pass
3 - confirm Koha still works

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
25 files changed:
C4/Circulation.pm
C4/Letters.pm
C4/MarcModificationTemplates.pm
Koha/Calendar.pm
Koha/Checkout.pm
Koha/Checkouts.pm
Koha/EDI.pm
Koha/Edifact/Order.pm
Koha/Edifact/Transport.pm
Koha/Patron/Password/Recovery.pm
Koha/Sitemapper/Writer.pm
circ/overdue.pl
circ/returns.pl
installer/data/mysql/fix_unclosed_nonaccruing_fines_bug17135.pl
installer/data/mysql/updatedatabase.pl
members/summary-print.pl
misc/cronjobs/fines.pl
misc/cronjobs/overdue_notices.pl
opac/opac-ics.pl
t/Circulation/AgeRestrictionMarkers.t
t/db_dependent/DecreaseLoanHighHolds.t
t/db_dependent/Letters/TemplateToolkit.t
t/db_dependent/OAI/Server.t
t/db_dependent/Passwordrecovery.t
t/db_dependent/Sitemapper.t