×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

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

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

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

(OP)
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

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

(OP)
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close