Change timestamp from milisecond to second