LP#1635737 Apply DST-aware timezone to context dates user/miker/lp-1635737-interval_to_seconds-with-context
authorMike Rylander <mrylander@gmail.com>
Mon, 31 Jul 2017 19:55:34 +0000 (15:55 -0400)
committerMike Rylander <mrylander@gmail.com>
Mon, 31 Jul 2017 19:56:21 +0000 (15:56 -0400)
commit8f7be9b5fcd58401341957a1df03cc8d1e32ee64
tree393a5fa78018f830fc4e08fd8d0f89bc99e0de66
parent04a101312b0a42d34108c8d78997a3960241363a
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>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/NonCat.pm