fix unixtime to be seconds not microseconds