[Xfce4-commits] <xfce4-panel:xfce-4.6> Get the time the same as orange does, hopefully should fix bug #5352.
Nick Schermer
noreply at xfce.org
Fri Oct 16 14:30:08 CEST 2009
Updating branch refs/heads/xfce-4.6
to d0267142495900b08d19fcee6a618ca6fa2a6459 (commit)
from 3d7e2eabc7009a6252c9ce6b17fb5971e2454744 (commit)
commit d0267142495900b08d19fcee6a618ca6fa2a6459
Author: Nick Schermer <nick at xfce.org>
Date: Tue Oct 6 11:31:14 2009 +0200
Get the time the same as orange does, hopefully should fix bug #5352.
plugins/clock/clock.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/plugins/clock/clock.c b/plugins/clock/clock.c
index f62c57f..7fb5372 100644
--- a/plugins/clock/clock.c
+++ b/plugins/clock/clock.c
@@ -75,7 +75,8 @@ XFCE_PANEL_PLUGIN_REGISTER_INTERNAL (xfce_clock_plugin_construct);
void
xfce_clock_util_get_localtime (struct tm *tm)
{
- time_t now = time (0);
+ time_t now;
+ time (&now);
#ifndef HAVE_LOCALTIME_R
struct tm *tmbuf;
More information about the Xfce4-commits
mailing list