diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2015-04-09 13:08:24 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2015-04-09 13:08:24 -0500 |
commit | 8d282df37c72ff27a006ff928f1b151d98aa0e45 (patch) | |
tree | 89d5ecc46c7e674e753e907f48d8e8acd4935d1a /src/actions.cpp | |
parent | d5002c6b27cf0e00828555a10e89778008d6cd01 (diff) | |
parent | 49f49d4c18c2cc77a1a305c93a74e9e8ec903526 (diff) | |
download | ayatana-indicator-datetime-8d282df37c72ff27a006ff928f1b151d98aa0e45.tar.gz ayatana-indicator-datetime-8d282df37c72ff27a006ff928f1b151d98aa0e45.tar.bz2 ayatana-indicator-datetime-8d282df37c72ff27a006ff928f1b151d98aa0e45.zip |
sync with trunk
Diffstat (limited to 'src/actions.cpp')
-rw-r--r-- | src/actions.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/actions.cpp b/src/actions.cpp index 839c9cd..930e100 100644 --- a/src/actions.cpp +++ b/src/actions.cpp @@ -43,7 +43,7 @@ DateTime datetime_from_timet_variant(GVariant* v) t = g_variant_get_int64(v); if (t != 0) - return DateTime(t); + return DateTime::Local(t); else return DateTime::NowLocal(); } @@ -143,7 +143,7 @@ void on_calendar_activated(GSimpleAction * /*action*/, g_return_if_fail(t != 0); - auto dt = DateTime(t).start_of_day(); + auto dt = DateTime::Local(t).start_of_day(); static_cast<Actions*>(gself)->set_calendar_date(dt); } |