File gnucash-libdbi-0.9.patch of Package gnucash
Index: gnucash-2.6.4/src/backend/dbi/gnc-backend-dbi.c
===================================================================
--- gnucash-2.6.4.orig/src/backend/dbi/gnc-backend-dbi.c
+++ gnucash-2.6.4/src/backend/dbi/gnc-backend-dbi.c
@@ -2106,7 +2106,9 @@ row_get_value_at_col_name( GncSqlRow* ro
dbi_result_t *result = (dbi_result_t*)(dbi_row->result);
guint64 row = dbi_result_get_currow (result);
guint idx = dbi_result_get_field_idx (result, col_name) - 1;
- time64 time = result->rows[row]->field_values[idx].d_datetime;
+ const dbi_datetimex *dtx = &result->rows[row]->field_values[idx].d_datetimex;
+ struct tm copy = dtx->tm;
+ time64 time = timegm(©) - dtx->utc_offset;
(void)g_value_init( value, G_TYPE_INT64 );
g_value_set_int64 (value, time);
}