LP#838525 libdbi DATE types translated via gmtime
authorBill Erickson <berickxx@gmail.com>
Tue, 29 Sep 2015 16:10:53 +0000 (12:10 -0400)
committerMike Rylander <mrylander@gmail.com>
Thu, 1 Oct 2015 18:47:18 +0000 (14:47 -0400)
commit2c42d4cb515d7b35b95bd6b5b6b3b2ac3aec9fe3
tree051cf1d25105c0893be15ca29b8fd27a63d46a7c
parente174b43ef179828e32f60e71b4c56b691e3e85e0
LP#838525 libdbi DATE types translated via gmtime

libdbi assumes a date (w/ no time or timezone) is GMT.  Parse the date
via gmtime() instead of localtime() to ensure the date returned to the
caller matches the date in the DB.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/c-apps/oils_execsql.c
Open-ILS/src/c-apps/oils_sql.c