[gnome-control-center] datetime: Fix broken time setting on 32-bit machines
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] datetime: Fix broken time setting on 32-bit machines
- Date: Mon, 12 Mar 2012 15:41:42 +0000 (UTC)
commit bd41bd788be0f999e95ddb9a7b1ea8f507733646
Author: Bastien Nocera <hadess hadess net>
Date: Mon Mar 12 16:37:53 2012 +0100
datetime: Fix broken time setting on 32-bit machines
time_t might be a 32-bit integer, which wouldn't be big enough
to contain the number of microseconds since Epoch (since it can
only fit the number of seconds from Epoch until 2038).
https://bugzilla.redhat.com/show_bug.cgi?id=795792
panels/datetime/cc-datetime-panel.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/datetime/cc-datetime-panel.c b/panels/datetime/cc-datetime-panel.c
index b8ca7e9..d229e94 100644
--- a/panels/datetime/cc-datetime-panel.c
+++ b/panels/datetime/cc-datetime-panel.c
@@ -355,7 +355,7 @@ set_using_ntp_cb (GObject *source,
static void
queue_set_datetime (CcDateTimePanel *self)
{
- time_t unixtime;
+ gint64 unixtime;
/* timedated expects number of microseconds since 1 Jan 1970 UTC */
unixtime = g_date_time_to_unix (self->priv->date);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]