diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/date-time.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/date-time.cpp b/src/date-time.cpp index 33b1590..46591e6 100644 --- a/src/date-time.cpp +++ b/src/date-time.cpp @@ -57,7 +57,7 @@ DateTime::DateTime(time_t t) DateTime DateTime::NowLocal() { auto gtz = g_time_zone_new_local(); - auto gdt = g_date_time_new_now_local(); + auto gdt = g_date_time_new_now(gtz); DateTime dt(gtz, gdt); g_time_zone_unref(gtz); g_date_time_unref(gdt); @@ -67,7 +67,7 @@ DateTime DateTime::NowLocal() DateTime DateTime::Local(int year, int month, int day, int hour, int minute, int seconds) { auto gtz = g_time_zone_new_local(); - auto gdt = g_date_time_new_local (year, month, day, hour, minute, seconds); + auto gdt = g_date_time_new(gtz, year, month, day, hour, minute, seconds); DateTime dt(gtz, gdt); g_time_zone_unref(gtz); g_date_time_unref(gdt); |