does it use localtime()?

It uses a number of calls to the "date" binary:

weekday=`/drive0/var/date +%w`
month=`/drive0/var/date +%m`
day=`/drive0/var/date +%d`
hour=`/drive0/var/date +%H`
minute=`/drive0/var/date +%M`


I don't know how/if the date binary treats/considers environment variables, but it's worth giving a shot...

/Michael
_________________________
/Michael