diff options
Diffstat (limited to 'modern/src')
-rw-r--r-- | modern/src/settings/DevicePage.js | 2 | ||||
-rw-r--r-- | modern/src/settings/UserPage.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/settings/DevicePage.js b/modern/src/settings/DevicePage.js index 49f765a7..c84da42c 100644 --- a/modern/src/settings/DevicePage.js +++ b/modern/src/settings/DevicePage.js @@ -136,7 +136,7 @@ const DevicePage = () => { label={t('userExpirationTime')} type="date" value={(item.expirationTime && moment(item.expirationTime).locale('en').format(moment.HTML5_FMT.DATE)) || '2099-01-01'} - onChange={(e) => setItem({ ...item, expirationTime: moment(e.target.value, moment.HTML5_FMT.DATE).format() })} + onChange={(e) => setItem({ ...item, expirationTime: moment(e.target.value, moment.HTML5_FMT.DATE).locale('en').format() })} disabled={!admin} /> <FormControlLabel diff --git a/modern/src/settings/UserPage.js b/modern/src/settings/UserPage.js index c5e5e258..9b69cacd 100644 --- a/modern/src/settings/UserPage.js +++ b/modern/src/settings/UserPage.js @@ -279,7 +279,7 @@ const UserPage = () => { label={t('userExpirationTime')} type="date" value={(item.expirationTime && moment(item.expirationTime).locale('en').format(moment.HTML5_FMT.DATE)) || '2099-01-01'} - onChange={(e) => setItem({ ...item, expirationTime: moment(e.target.value, moment.HTML5_FMT.DATE).format() })} + onChange={(e) => setItem({ ...item, expirationTime: moment(e.target.value, moment.HTML5_FMT.DATE).locale('en').format() })} disabled={!manager} /> <TextField |