add timezone info to times -- only used currently for hours of operation
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 24 Mar 2008 17:47:25 +0000 (17:47 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 24 Mar 2008 17:47:25 +0000 (17:47 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@9123 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/c-apps/oils_cstore.c

index 6b4692c..5b58e08 100644 (file)
@@ -3284,7 +3284,7 @@ static jsonObject* oilsMakeJSONFromResult( dbi_result result ) {
                                        localtime_r( &_tmp_dt, &gmdt );
 
                                        if (!(attr & DBI_DATETIME_DATE)) {
-                                               strftime(dt_string, sizeof(dt_string), "%T", &gmdt);
+                                               strftime(dt_string, sizeof(dt_string), "%T%z", &gmdt);
                                        } else if (!(attr & DBI_DATETIME_TIME)) {
                                                strftime(dt_string, sizeof(dt_string), "%F", &gmdt);
                                        } else {