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:14 +0000 (21:37 -0400)
commit656212c4db0c421b252e287a3eb5501577feaaa4
tree31d124374b6a625a9b7181a9791432b595d93b45
parent19f9a041a74ffa11b00529742a86a11b10dd50d2
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