Fix unix timestamp conversion