Bug 795792 - date is set to 1.1.1970
Summary: date is set to 1.1.1970
Alias: None
Product: Fedora
Classification: Fedora
Component: control-center
Version: 17
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Control Center Maintainer
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: F17Blocker, F17FinalBlocker
TreeView+ depends on / blocked
Reported: 2012-02-21 14:41 UTC by Kamil Páral
Modified: 2012-04-12 11:53 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2012-04-12 11:53:10 UTC

Attachments (Terms of Use)

Description Kamil Páral 2012-02-21 14:41:03 UTC
Description of problem:
When I use gnome Control Center -> Date and Time to set system time, no matter what time I set, it gets reset to 1.1.1970 UTC (the local time is plus or minus a few hours, depending on your timezone).

I have seen the same issue both in KVM machine and on bare-metal machine.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. run control center -> date and time
2. move time, e.g. add a day, subtract an hour, or similar
3. look into the panel or issue "date" in terminal. you'll see 1.1.1970 UTC
Additional info:
My colleague tested that he has no problems with control-center-3.3.5-1.fc17.x86_64. Maybe it is a problem only for i686?

Comment 1 Matthias Clasen 2012-03-11 23:48:48 UTC
Hmm, not happening here either, on x86_64 - do you still see this problem ?

Comment 2 Kamil Páral 2012-03-12 09:33:27 UTC
Yes I still see it. It seems to be broken just on i686.


Comment 3 Bastien Nocera 2012-03-12 15:27:26 UTC
Can you run:
dbus-monitor --system
and reproduce the bug?

Comment 4 Bastien Nocera 2012-03-12 15:42:40 UTC
Never mind.

This should be fixed by:

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).

Comment 5 Kamil Páral 2012-03-12 16:28:59 UTC
Great job, thanks. I'm reopening this bug since we need it to track the Fedora blocker status. Please push the fix to Fedora Updates, thanks.

Comment 6 Matthias Clasen 2012-03-24 23:38:28 UTC
Fix is included in the .92 build

Comment 7 Kamil Páral 2012-03-26 12:05:44 UTC
The build is here:


Reopening until we have this verified and pushed to stable. It's better to use Bodhi to manage the bug state.

Comment 8 Kamil Páral 2012-03-26 13:12:02 UTC
Fix verified. Now we need to push to stable.

Note You need to log in before you can comment on or make changes to this bug.