fix: api token expiry time (#4165)

This commit is contained in:
Anmol Singh Bhatia 2024-04-10 21:27:22 +05:30 committed by GitHub
parent 43534dcaed
commit 4f15c03f91
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -95,7 +95,7 @@ export const CreateApiTokenForm: React.FC<Props> = (props) => {
else {
const expiryDate = getExpiryDate(data.expired_at ?? "");
if (expiryDate) payload.expired_at = renderFormattedPayloadDate(expiryDate);
if (expiryDate) payload.expired_at = renderFormattedPayloadDate(new Date(expiryDate));
}
await onSubmit(payload).then(() => {