Hello Experts,
I am facing problem in date command with TZ
test.sh
[ date1=`TZ="GMT+28" date +'%d-%b-%Y'`]
[ date2=`TZ="GMT+48" date +'%d-%b-%Y'`]
[ echo $date1 $date2 ]
Output : 26-May-2010 27-May-2010
I scheduled this script everyday at 1 a.m
00 01 * * * sh test.sh
when i was called this script test.sh from crontab , it was giving me other output
[ echo $date1 $date2 ]
Output : 25-May-2010 26-May-2010
How this date is changing, i am not getting. Please look into this issue.