Revert "Changed time format to localtime instead of seconds since epoch."

This reverts commit c521045de4b3a40c0c7fbec326fb4951b0a54de9.
Debugging the way the code handles the timestamp.