LP#1635737 Apply DST-aware timezone to context dates
authorMike Rylander <mrylander@gmail.com>
Mon, 31 Jul 2017 19:55:34 +0000 (15:55 -0400)
committerDan Wells <dbw2@calvin.edu>
Wed, 3 Apr 2019 15:16:30 +0000 (11:16 -0400)
commit152490f5ac385ba752f5ed8dd207d26bf2b7cd3f
tree5f5f5d13564fa5701fa67f4fe995b36461e7f00c
parentfedf81cb709292132a84e79aaf8515b334b4c28b
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>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/NonCat.pm