Bug 12669: Centralize the timezone handle into Koha::DateUtils
authorJonathan Druart <jonathan.druart@biblibre.com>
Tue, 16 Sep 2014 11:15:57 +0000 (13:15 +0200)
committerChris Cormack <chrisc@catalyst.net.nz>
Sun, 22 Feb 2015 23:06:38 +0000 (12:06 +1300)
commiteef770cf2fa3842e2ba1863b4c1966bb125e2d4e
treeabf0442290c18d6f5bb8b8e61d12e93efdb84371
parentc6c653b4d4f1ea293fc2b197250b67093eabf781
Bug 12669: Centralize the timezone handle into Koha::DateUtils

This patch adds unit tests for the previous changes and centralize the
timezone handle into the Koha::DateUtils module.
Like that the behavior will affect all date manipulations using this
module (should be all dates in Koha).

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit f82064286d3bc97031ad784901716a7a327839bc)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Koha/DateUtils.pm
Koha/Template/Plugin/KohaDates.pm
t/DateUtils.t
t/db_dependent/Koha_template_plugin_KohaDates.t