[Koha-bugs] [Bug 23079] Checkouts page broken because of problems with date calculation (TZAmerica/Sao_Paulo)

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jul 2 18:14:57 CEST 2019


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

--- Comment #12 from M. Tompsett <mtompset at hotmail.com> ---

> > Why not:
> > $from_placed_on->set_year($from_placed_on->year() - 1);
> > -- no timezone needed.
> 
> Hum? I do not understand how it will fix the problem.

"Do not use this method to do date math. Use the add() and subtract() methods
instead."
https://metacpan.org/pod/DateTime#%22Set%22-Methods
-- Okay, bad suggestion.

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


More information about the Koha-bugs mailing list