Time-zone issue while executing scripts from oracle scheduler
Hi,
We are currently migrating batch jobs in production environment from Tivoli workload scheduler to Oracle scheduler.
We face the issue when running a script containing date function from scheduler, the date output shows UTC timezone instead of the default time zone(ie, EET). The same script if run from Tivoli or directly executed from the shell shows the correct Time-zone. Please find the sample output of the two scenarios.
more ./dummscript.sh
echo $TZ > osran.log
date '+%m/%d/%Y%Z %H:%M:%S' >> osran.log
THe output when executed directly from server
more osran.log
WET-2WET-3,M3.5.0/03:00:00,M10.5.0/04:00:00