Red Hat Bugzilla – Bug 114871
TZ variable not able to properly manipulate date
Last modified: 2016-11-24 10:28:19 EST
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
Description of problem:
I am attempting to manipulate the date to show me the time/date
exactly 24 hours ago.
I attempt to do this using the following convention from command line
or in a script:
This should give me a date exactly 24 hours ago, but here is what I
Tue Feb 3 14:16:02 CST 2004
Mon Feb 2 21:16:03 CST 2004
I am located in the Central time zone and am using bash.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. date; TZ=XXX30YYY date (where XXX and YYY reflect the time zone)
Date just reports what localtime() says.
The hour shall be between zero and 24...
The result of using values outside of this range is unspecified.