fix setcookie time type