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

--- Comment #8 from Julian Maurice <[email protected]> ---
... 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.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to