gnucash/gnucash-libdbi-0.9.patch
Stephan Kulow 155a8d0223 Accepting request 253932 from GNOME:Apps
- Update gnucash-libdbi-0.9.patch: fix usage of internal function
  _gnucash-libdbi-0.9.patch (boo#898974).

- Update to version 2.6.4:
  + Add business lot scrubbing to Check & Repair->All/This
    transaction(s).
  + Add context to generic translatable string.
  + Add scrub function to reduce the amount of lot links used.
  + Add some date format checking and make sure generated dates are
    the correct user selected format, not always locale format.
  + Allow the ability to skip rows when importing transactions.
  + Always use the price we display to calculate the current value
    of an account.
  + Better period totals formatting in Invoices.
  + CSV Export: factor out function to generate regular expression.
  + CSV Import transform macro into function.
  + Convert ISO-8859-1 account chart templates to UTF-8.
  + Correct txf output to use a minus sign, rather than
    parenthesis.
  + Fix document type dispay for credit notes on owner report.
  + Fix test-backend-dbi segfault with libdbi-0.9.0.
  + Handle the case of scrubbing a lot link between two
    non-document lots.
  + Lots of refactoring.
  + Chart-of-Account Templates Updated.
  + Bugs fixed: bgo#120199, bgo#434462, bgo#509263, bgo#610202,
    bgo#630638, bgo#671615, bgo#688965, bgo#692249, bgo#695240,
    bgo#707243, bgo#711440, bgo#711567, bgo#719457, bgo#719457,
    bgo#720427, bgo#720934, bgo#722140, bgo#722200, bgo#723145,
    bgo#723442, bgo#725054, bgo#725366, bgo#726449, bgo#726888,

OBS-URL: https://build.opensuse.org/request/show/253932
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnucash?expand=0&rev=57
2014-10-05 18:32:06 +00:00

16 lines
807 B
Diff

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(&copy) - dtx->utc_offset;
(void)g_value_init( value, G_TYPE_INT64 );
g_value_set_int64 (value, time);
}