[Xfce4-commits] <xfce4-panel:master> Get the time the same as orange does, hopefully should fix bug #5352.
Nick Schermer
noreply at xfce.org
Tue Oct 6 11:34:02 CEST 2009
Updating branch refs/heads/master
to 35f316c17d7f29d49040ddb67829aee1ac272364 (commit)
from d19e600937b0704ca5ae927d24a0b4db93e5e371 (commit)
commit 35f316c17d7f29d49040ddb67829aee1ac272364
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