Bug 32484: Replace DateTime->now by Koha::DateUtils::dt_from_string

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Julian Maurice 2023-02-24 13:00:47 +01:00 committed by Tomas Cohen Arazi
parent edcabe3728
commit 689632256f
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
1 changed files with 2 additions and 2 deletions

View File

@ -2,12 +2,12 @@
use Modern::Perl;
use DateTime;
use Test::More;
use C4::ClassSource;
use Koha::ClassSources;
use Koha::DateUtils qw( dt_from_string );
use Koha::ItemTypes;
use Koha::Libraries;
@ -33,7 +33,7 @@ subtest 'generate_subfield_form default value' => sub {
},
);
my $today = DateTime->now->ymd;
my $today = dt_from_string()->ymd;
is($subfield->{marc_value}->{value}, "The date is $today and user is superlibrarian");
};