mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug #704039 time zone is not respected on windows
Author: Kuang-che Wu <kcwu@csie.org> git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23155 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
47e89eff6b
commit
2eaf1a5586
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user