fix timestamp to long from int