[Koha-bugs] [Bug 22453] TestBuilder should generate now() using the current timezone

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Mar 5 17:58:41 CET 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22453

--- Comment #2 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
% more build_date.pl
use Modern::Perl;
use t::lib::TestBuilder;
my $builder = t::lib::TestBuilder->new;
my $patron = $builder->build_object( { class => 'Koha::Patrons' } );
say $patron->updated_on;
say `date`;

% perl build_date.pl
2019-03-05 16:57:57
Tue Mar  5 13:57:57 -03 2019

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


More information about the Koha-bugs mailing list