Its a very unusual bug.
Some people when run $asctime(..) get alwais $null.
I belive it depends from timezones or pc confs since i tryed one of the scrits(including mirc.exe and all ini files) that had that problem and worked with me.