Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TZ variabvle not set from cron ksh jobs after DST change on Sunday morning

Status
Not open for further replies.

ui05067

MIS
Aug 24, 2001
18
US
m500261-clin_prod /home/hci $ `TZ=$TZ+848 date +%Y%m%d`
ksh: 20121106: not found.
m500261-clin_prod /home/hci $ echo $TZ
EST5EDT
m500261-clin_prod /home/hci $ date
Tue Nov 6 19:07:00 EST 2012

how come the first command does not yield a date of 31 days ago?


Stopped working after Daylight savings time 2 days ago November 5

 
todays date is 11/07/2012
`TZ=$TZ+48 date +%Y%m%d` yields 20121107 ????

it should yield 20121105


TZ=EST5EDT

running AIX 6.1.0.0
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top