Fix call to expanduser
Settle on using gmtime
And encode timestamps as float