Changed time format to localtime instead of seconds since epoch.