LP#1635737 Apply DST-aware timezone to context dates user/dbwells/lp1635737_better_interval_to_seconds_2018
authorMike Rylander <mrylander@gmail.com>
Mon, 31 Jul 2017 19:55:34 +0000 (15:55 -0400)
committerDan Wells <dbw2@calvin.edu>
Tue, 6 Nov 2018 20:35:26 +0000 (15:35 -0500)
commitfba656c84944d5332ccfa66bf6a3274d87e13b39
tree3f134c2c911d77410a4706c8f446aed73464cea4
parent236e1265235ceb6d4f9eaa6ff0cd1cfee50926ff
LP#1635737 Apply DST-aware timezone to context dates

Do our best to enforce the rule required by OpenSRF's interval_to_seconds
that when a context date is in use, and you care about DST awareness, you
must set the timezone to a DST-aware value, e.g., 'America/New_York'. In
most situations, 'local' will suffice for this, as the server is typically
configured with a DST-aware timezone in its environment.  However, we will
look for an org unit setting called 'lib.timezone' and use that where we
can.  See LP#1705524 for info on that setting.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Conflicts:
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/NonCat.pm

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/NonCat.pm