timestamp format bug fix