π₯π₯π₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.
TypeScript boardsbug-trackerdjangodockerganttissue-trackerjirajira-alternativekanbanlinearpostgresqlproduct-managementproject-managementproject-planningpythonreactredistypesciptvitework-management
fix: api token expiry time (#4165)
Anmol Singh Bhatia4f15c03f911d
diff --git a/web/components/api-token/modal/form.tsx b/web/components/api-token/modal/form.tsxindex b2b3f64dcb..93a92c9ef7 100644--- a/web/components/api-token/modal/form.tsx+++ b/web/components/api-token/modal/form.tsx@@ -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(() => {@@ -170,8 +170,8 @@ export const CreateApiTokenForm: React.FC<Props> = (props) => {{value === "custom"? "Custom date": selectedOption- ? selectedOption.label- : "Set expiration date"}+ ? selectedOption.label+ : "Set expiration date"}</div>}value={value}@@ -207,8 +207,8 @@ export const CreateApiTokenForm: React.FC<Props> = (props) => {? `Expires ${renderFormattedDate(customDate)}`: null: watch("expired_at")- ? `Expires ${getExpiryDate(watch("expired_at") ?? "")}`- : null}+ ? `Expires ${getExpiryDate(watch("expired_at") ?? "")}`+ : null}</span>)}</div>