From 2eaf1a5586f8e513abe90c87369b01538cb20a2c Mon Sep 17 00:00:00 2001 From: Geert Janssens Date: Tue, 3 Sep 2013 13:35:03 +0000 Subject: [PATCH] Bug #704039 time zone is not respected on windows Author: Kuang-che Wu git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23155 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/libqof/qof/gnc-date.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libqof/qof/gnc-date.c b/src/libqof/qof/gnc-date.c index 84d638879f..0609c62294 100644 --- a/src/libqof/qof/gnc-date.c +++ b/src/libqof/qof/gnc-date.c @@ -111,7 +111,7 @@ gnc_g_time_zone_new_local (void) gint bias = tzinfo.Bias + tzinfo.StandardBias; gint hours = -bias / 60; // 60 minutes per hour gint minutes = (bias < 0 ? -bias : bias) % 60; - gchar *tzstr = g_strdup_printf ("%+03d%02d", hours, minutes); + gchar *tzstr = g_strdup_printf ("%+02d%02d", hours, minutes); GTimeZone *tz = g_time_zone_new(tzstr); g_free (tzstr); return tz;