RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1460874 - In section 2.2.3 the example "date --set 2013-06-02 23:26:00" don't have quote mark
Summary: In section 2.2.3 the example "date --set 2013-06-02 23:26:00" don't have quot...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: doc-System_Administrators_Guide
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: rc
: ---
Assignee: Marie Hornickova
QA Contact: ecs-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-13 02:52 UTC by Nolan Wei
Modified: 2019-03-06 01:46 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-10 12:00:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Nolan Wei 2017-06-13 02:52:25 UTC
Document URL: 
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7-Beta/html/System_Administrators_Guide/sect-Configuring_the_Date_and_Time-date.html#sect-Configuring_the_Date_and_Time-date-Date

Section Number and Name: 
2.2.3. Changing the Current Date

Describe the issue: 
In the example to change the system date, it's said.

To change the current date, run the date command with the --set or -s option as root:
date --set YYYY-MM-DD
To change the current date to 2 June 2013 and keep the current time (11:26 p.m.), run the following command as root:
~]# date --set 2013-06-02 23:26:00



But if we do a test in our RHEL7 system, run the command "# date --set 2013-06-02 23:26:00" immediately, it will prompts error.

# date --set 2013-06-02 23:26:00
date: the argument ‘23:26:00’ lacks a leading '+';
when using an option to specify date(s), any non-option
argument must be a format string beginning with '+'
Try 'date --help' for more information


We need the single quotation or double quotation mark here.
# date --set '2013-06-02 23:26:00'
Sun Jun  2 23:26:00 CST 2013


Suggestions for improvement: 
Modify this section 2.2.3 and add the single quotation or double quotation mark in the example.

Additional information: 
This also happens in 7.4 system administrator guide.


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