]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1321429: Use server-local time as best-guess
authorMike Rylander <mrylander@gmail.com>
Tue, 20 May 2014 18:30:20 +0000 (14:30 -0400)
committerBen Shum <bshum@biblio.org>
Thu, 22 May 2014 01:37:08 +0000 (21:37 -0400)
commit4e84fd93e902bda272f77338234c82dad857038a
treefbe2df4b873cb7b9df1faf41d3eb7b893d9decb4
parente174630d6c666dcfe55d78147398978a9ad26295
LP#1321429: Use server-local time as best-guess

When first calculating the shelf expire time, we assume "now" as
the starting point by calling DateTime->now().  However, that gives
us the time in UTC.  That's not good because closed dates are stored
timezone-aware.  Instead, ask for server-local time.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm