bug 1063832 - change date format
tidy up brightscript to make it possible to run from localhost