Bug 750244 - RFE: reflect that 'date' no longer sets the hardware clock
RFE: reflect that 'date' no longer sets the hardware clock
Product: Fedora
Classification: Fedora
Component: coreutils (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Pádraig Brady
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2011-10-31 09:01 EDT by Kamil Páral
Modified: 2011-11-02 07:48 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2011-11-02 07:48:46 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 2011-10-31 09:01:55 EDT
Description of problem:
'date' command can no longer be used to set the hardware clock. It was never its true purpose, but it was a consequence and many system administrators rely on 'date' setting the hardware clock. From Fedora 16 that is no longer true, see bug #749516.

Please make adjustments in coreutils 'date' to reflect this change. Proposed changes:

1. Adjust date's man page to clearly state that this command sets system time, but not hardware time, and reference 'hwclock' command for the latter purpose.

2. If you consider it helpful, add a new CLI option to set the system clock and hardware clock in the same command, by internally calling hwclock in the end.

I think at least the first option would be very beneficial to implement.

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

How reproducible:
see #749516
Comment 1 Pádraig Brady 2011-10-31 09:14:54 EDT
I'll adjust the documentation upstream, to be compatible with old and new behaviors. I'm not going to change or add "hardware" functionality as I don't think that is date's function.
Comment 2 Ondrej Vasik 2011-10-31 09:25:13 EDT
Thanks Pádraig.
Comment 3 Pádraig Brady 2011-11-02 07:48:46 EDT
I've applied this upstream http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=51286059

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