LP#838525 libdbi DATE types translated via gmtime user/berick/lp838525-dob-as-date
authorBill Erickson <berickxx@gmail.com>
Tue, 29 Sep 2015 16:10:53 +0000 (12:10 -0400)
committerBill Erickson <berickxx@gmail.com>
Wed, 30 Sep 2015 16:51:42 +0000 (12:51 -0400)
commitd93608d2a6549814b1c4dd3888b67e4d0f7b41e4
tree051cf1d25105c0893be15ca29b8fd27a63d46a7c
parentbc6a0a5875669331e03fd5b91e82698435440a4b
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>
Open-ILS/src/c-apps/oils_execsql.c
Open-ILS/src/c-apps/oils_sql.c