+
{
const buildInfoData: BuildInfoAttribute[] = [
{
label: t('buildDate', { ns: 'common' }),
- value: dayjs(config.VITE_BUILD_DATE).format(DateFormat.DATE),
+ value: ,
},
{
label: t('buildTime', { ns: 'common' }),
@@ -46,7 +47,7 @@ const AboutPage = () => {
},
{
label: t('buildTimestamp', { ns: 'common' }),
- value: dayjs(config.VITE_BUILD_TS).format(DateFormat.TIMESTAMP),
+ value: ,
},
{
label: t('commitSha', { ns: 'common' }),
diff --git a/packages/web/src/pages/Auth/Signin/api/useSignin.ts b/packages/web/src/pages/Auth/Signin/api/useSignin.ts
index ce5764e3..9f314d6b 100644
--- a/packages/web/src/pages/Auth/Signin/api/useSignin.ts
+++ b/packages/web/src/pages/Auth/Signin/api/useSignin.ts
@@ -1,6 +1,6 @@
import { useMutation, useQueryClient } from '@tanstack/react-query';
-import dayjs from 'dayjs';
import find from 'lodash/find';
+import { addHours } from 'date-fns';
import { User } from '@/common/api/useGetUser';
import { UserTokens } from '@/common/api/useGetUserTokens';
@@ -40,7 +40,7 @@ export const useSignin = () => {
storage.setJsonItem(StorageKey.User, user);
// simlate the creation of authentication tokens
- const expires_at = dayjs().add(1, 'hour').toISOString();
+ const expires_at = addHours(new Date(), 1).toISOString();
const tokens: UserTokens = {
access_token: 'access-token',
id_token: 'id-token',