r23179 - gnucash/trunk/src/libqof/qof - Bug #704039 time zone is not respected in Windows
John Ralls
jralls at code.gnucash.org
Thu Sep 19 15:23:16 EDT 2013
Author: jralls
Date: 2013-09-19 15:23:13 -0400 (Thu, 19 Sep 2013)
New Revision: 23179
Trac: http://svn.gnucash.org/trac/changeset/23179
Modified:
gnucash/trunk/src/libqof/qof/gnc-date.c
Log:
Bug #704039 time zone is not respected in Windows
Thanks to Kuang-che Wu <kcwu at csie.org>
Modified: gnucash/trunk/src/libqof/qof/gnc-date.c
===================================================================
--- gnucash/trunk/src/libqof/qof/gnc-date.c 2013-09-19 16:32:40 UTC (rev 23178)
+++ gnucash/trunk/src/libqof/qof/gnc-date.c 2013-09-19 19:23:13 UTC (rev 23179)
@@ -142,7 +142,7 @@
bias = tzinfo.Bias + tzinfo.DaylightBias;
hours = -bias / 60; // 60 minutes per hour
minutes = (bias < 0 ? -bias : bias) % 60;
- tzstr = g_strdup_printf ("%+03d%02d", hours, minutes);
+ tzstr = g_strdup_printf ("%+02d%02d", hours, minutes);
tz = g_time_zone_new(tzstr);
}
#endif
More information about the gnucash-changes
mailing list