local time function, fix author notices