diff --git a/app/ide-desktop/lib/dashboard/src/authentication/src/dashboard/dateTime.ts b/app/ide-desktop/lib/dashboard/src/authentication/src/dashboard/dateTime.ts index 7d931f3e4ce..aa40100a625 100644 --- a/app/ide-desktop/lib/dashboard/src/authentication/src/dashboard/dateTime.ts +++ b/app/ide-desktop/lib/dashboard/src/authentication/src/dashboard/dateTime.ts @@ -11,7 +11,7 @@ export type Rfc3339DateTime = newtype.Newtype /** Formats date time into the preferred format: `YYYY-MM-DD, hh:mm`. */ export function formatDateTime(date: Date) { const year = date.getFullYear() - const month = date.getMonth().toString().padStart(2, '0') + const month = (date.getMonth() + 1).toString().padStart(2, '0') const dayOfMonth = date.getDate().toString().padStart(2, '0') const hour = date.getHours().toString().padStart(2, '0') const minute = date.getMinutes().toString().padStart(2, '0')