From 9a59d6524c45d5542433302a498f9ada4e45e806 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 4 Sep 2023 10:53:05 -0700 Subject: Migrate to DayJs from moment --- modern/src/login/LoginPage.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modern/src/login') diff --git a/modern/src/login/LoginPage.jsx b/modern/src/login/LoginPage.jsx index a177505c..73104def 100644 --- a/modern/src/login/LoginPage.jsx +++ b/modern/src/login/LoginPage.jsx @@ -1,5 +1,5 @@ import React, { useEffect, useState } from 'react'; -import moment from 'moment'; +import dayjs from 'dayjs'; import { useMediaQuery, InputLabel, Select, MenuItem, FormControl, Button, TextField, Link, Snackbar, IconButton, Tooltip, LinearProgress, Box, } from '@mui/material'; @@ -72,7 +72,7 @@ const LoginPage = () => { if (nativeEnvironment) { let token = ''; try { - const expiration = moment().add(6, 'months').toISOString(); + const expiration = dayjs().add(6, 'months').toISOString(); const response = await fetch('/api/session/token', { method: 'POST', body: new URLSearchParams(`expiration=${expiration}`), -- cgit v1.2.3