diff options
author | Anton Tananaev <anton@traccar.org> | 2022-07-22 17:32:07 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-07-22 17:32:07 -0700 |
commit | f9f5ea547e61b6ff527149fa5814851240d2c967 (patch) | |
tree | e2902f69760c2c2c4837752ef81f44883b231be1 /modern/src/settings/UserPage.js | |
parent | 98cb21230d938ac04f53a4425e5d3eae9cfdbfda (diff) | |
download | trackermap-web-f9f5ea547e61b6ff527149fa5814851240d2c967.tar.gz trackermap-web-f9f5ea547e61b6ff527149fa5814851240d2c967.tar.bz2 trackermap-web-f9f5ea547e61b6ff527149fa5814851240d2c967.zip |
Add device expiration (fix #85)
Diffstat (limited to 'modern/src/settings/UserPage.js')
-rw-r--r-- | modern/src/settings/UserPage.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/settings/UserPage.js b/modern/src/settings/UserPage.js index 8bae2e59..392339d0 100644 --- a/modern/src/settings/UserPage.js +++ b/modern/src/settings/UserPage.js @@ -287,7 +287,7 @@ const UserPage = () => { <TextField label={t('userExpirationTime')} type="date" - value={(item.expirationTime && moment(item.expirationTime).format(moment.HTML5_FMT.DATE)) || '2999-01-01'} + 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() })} disabled={!manager} /> |