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: "TZ=CDT30CST date" This should give me a date exactly 24 hours ago, but here is what I am seeing: # date Tue Feb 3 14:16:02 CST 2004 TZ=CST30CDT date 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): sh-utils-2.0.11-5 How reproducible: Always Steps to Reproduce: 1. date; TZ=XXX30YYY date (where XXX and YYY reflect the time zone) 2. 3. Additional info:
Date just reports what localtime() says.
See http://www.opengroup.org/onlinepubs/007904975/basedefs/xbd_chap08.html Particularly: The hour shall be between zero and 24... and The result of using values outside of this range is unspecified.