Bug 711289 - time zone handling is inconsistent between 2.4 and 2.5

This had escaped the windows TZ workaround.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23414 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
John Ralls 2013-11-20 03:15:25 +00:00
parent 390c14aec2
commit 0c7504c9ef

View File

@ -29,17 +29,15 @@
void
gnc_gdate_set_today (GDate* gd)
{
GDateTime *gdt = g_date_time_new_now_local ();
gint y, m, d;
g_date_time_get_ymd (gdt, &y, &m, &d);
g_date_set_dmy (gd, d, m, y);
g_date_time_unref (gdt);
GDate *today = gnc_g_date_new_today ();
g_date_set_julian (gd, g_date_get_julian (today));
g_date_free (today);
}
void
gnc_gdate_set_time64 (GDate* gd, time64 time)
{
GDateTime *gdt = g_date_time_new_from_unix_local (time);
GDateTime *gdt = gnc_g_date_time_new_from_unix_local (time);
gint y, m, d;
g_date_time_get_ymd (gdt, &y, &m, &d);
g_date_set_dmy (gd, d, m, y);