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 974014 - date +%s output reverse
Summary: date +%s output reverse
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: coreutils
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Ondrej Vasik
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-13 09:37 UTC by Jian Li
Modified: 2014-03-04 00:09 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-03 07:04:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jian Li 2013-06-13 09:37:47 UTC
Description of problem:
In my cases, i use 'data +%s' to check test process..  Auto test alway time out, for 'date +%s' output revers result..

https://beaker.engineering.redhat.com/jobs/434294
http://beaker-archive.app.eng.bos.redhat.com/beaker-logs/2013/06/4342/434294/913149/13121326/TESTOUT.log

output skip from '1371129194' to '1371129205', about 4 hours.


Version-Release number of selected component (if applicable):
RHEL-7.0-20130606.0
RHEL-7.0-20130522.0

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Jian Li 2013-06-13 10:02:11 UTC
skip: 1371129205 => 1371114815

Comment 3 Ondrej Vasik 2013-06-13 20:11:08 UTC
Could you please better explain what's the issue you are experiencing? I don't see anything wrong there.

Comment 4 Jian Li 2013-07-03 07:04:03 UTC
/mnt/tests/kernel/filesystems/nfs/pNFS/bz218777
++ date +%s
++ expr 1371129024 + 300
+ '[' 1371129205 -lt 1371129324 ']'   <====  date return 1371129205
+ pushd /mnt/bz218777/bz218777/hp-dl380pgen8-02-vm-13.lab.bos.redhat.com
/mnt/bz218777/bz218777/hp-dl380pgen8-02-vm-13.lab.bos.redhat.com /mnt/tests/kernel/filesystems/nfs/pNFS/bz218777
+ /mnt/tests/kernel/filesystems/nfs/pNFS/bz218777/crash
+ stat /mnt/bz218777/bz218777/hp-dl380pgen8-02-vm-13.lab.bos.redhat.com/file_on_nfs
  File: ‘/mnt/bz218777/bz218777/hp-dl380pgen8-02-vm-13.lab.bos.redhat.com/file_on_nfs’
  Size: 0         	Blocks: 0          IO Block: 65536  regular empty file
Device: 23h/35d	Inode: 79363       Links: 1
Access: (2644/-rw-r-Sr--)  Uid: (   99/  nobody)   Gid: (   99/  nobody)
Context: system_u:object_r:nfs_t:s0
Access: 2013-06-13 05:11:32.169989000 -0400
Modify: 2013-06-13 05:11:32.169989000 -0400
Change: 2013-06-13 05:11:32.171990000 -0400
 Birth: -
+ log 'Test ran sucessfully.'
+ tee -a /tmp/tmp.pdjERc
+ echo -e 'Test ran sucessfully.'
Test ran sucessfully.
+ rm -f /mnt/bz218777/bz218777/hp-dl380pgen8-02-vm-13.lab.bos.redhat.com/file_on_nfs
+ sleep 10
+ popd
/mnt/tests/kernel/filesystems/nfs/pNFS/bz218777
++ date +%s
++ expr 1371129024 + 300
+ '[' 1371114815 -lt 1371129324 ']'   <==== date return 1371114815

date output reverse.  

But in my later testing, there is no problem, close this bug.


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