Bug 11468: Remove given/when from Koha::Dateutils
authorColin Campbell <colin.campbell@ptfs-europe.com>
Thu, 2 Jan 2014 14:42:16 +0000 (14:42 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 6 Aug 2014 10:44:16 +0000 (12:44 +0200)
commit01e627b6412bbb3d2fc82900014c118dc5b06a57
tree4609bc8fccb8e7c3ad05a4bd24d1297e2ab61b5f
parent552e2d5ef0bab15536a730efc57eba3eb1f5c6b1
Bug 11468: Remove given/when from Koha::Dateutils

given and when give warnings due to their experimental
status as of perl 5.18. Replace the construct with
an if/elsif to avoid the keywords

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passes all tests and QA script, especially t/DateUtils.t.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit b529ca00e0cac093fc32a1d123cdbcc84582c155)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/DateUtils.pm