gnucash/gnucash-libdbi-0.9.patch

14 lines
728 B
Diff
Raw Normal View History

Index: gnucash-2.6.3/src/backend/dbi/gnc-backend-dbi.c
===================================================================
--- gnucash-2.6.3.orig/src/backend/dbi/gnc-backend-dbi.c
+++ gnucash-2.6.3/src/backend/dbi/gnc-backend-dbi.c
@@ -2039,7 +2039,7 @@ 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;
+ time64 time = _dbi_make_datetime(result->rows[row]->field_values[idx].d_datetimex);
(void)g_value_init( value, G_TYPE_INT64 );
g_value_set_int64 (value, time);
}