[Koha-bugs] [Bug 19176] Dates comparison fails on slow server
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Oct 13 14:28:21 CEST 2017
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19176
--- Comment #8 from Julian Maurice <julian.maurice at biblibre.com> ---
... and it doesn't consider timezone.
my $dt = DateTime->new(
year => 2017,
month => 1,
day => 1,
hour => 1,
minute => 1,
second => 0,
time_zone => '+0000',
);
my $dt2 = DateTime->new(
year => 2017,
month => 1,
day => 1,
hour => 1,
minute => 1,
second => 0,
time_zone => '+0400',
);
t::lib::Dates::compare($dt, $dt2, 'different timezones');
says 'ok'.
Maybe you should compare "epoch values" (DateTime::epoch) instead.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list