Commit bd41bd78 authored by Bastien Nocera's avatar Bastien Nocera

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).
parent a0d0da46
......@@ -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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment