Bug 795792 - date is set to 1.1.1970
date is set to 1.1.1970
Product: Fedora
Classification: Fedora
Component: control-center (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Control Center Maintainer
Fedora Extras Quality Assurance
: Reopened
Depends On:
Blocks: F17Blocker/F17FinalBlocker
  Show dependency treegraph
Reported: 2012-02-21 09:41 EST by Kamil Páral
Modified: 2012-04-12 07:53 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-04-12 07:53:10 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Kamil Páral 2012-02-21 09:41:03 EST
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 19:48:48 EDT
Hmm, not happening here either, on x86_64 - do you still see this problem ?
Comment 2 Kamil Páral 2012-03-12 05:33:27 EDT
Yes I still see it. It seems to be broken just on i686.

Comment 3 Bastien Nocera 2012-03-12 11:27:26 EDT
Can you run:
dbus-monitor --system
and reproduce the bug?
Comment 4 Bastien Nocera 2012-03-12 11:42:40 EDT
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 12:28:59 EDT
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 19:38:28 EDT
Fix is included in the .92 build
Comment 7 Kamil Páral 2012-03-26 08:05:44 EDT
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 09:12:02 EDT
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.