Bug #704039 time zone is not respected in Windows

Thanks to Kuang-che Wu <kcwu@csie.org>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23179 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
John Ralls 2013-09-19 19:23:13 +00:00
parent ad1f7524fa
commit 70e865c80f

View File

@ -142,7 +142,7 @@ gnc_g_time_zone_adjust_for_dst (GTimeZone* tz, GDateTime *date)
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