use time.localtime in machine event timestamp