diff options
author | Anton Tananaev <anton@traccar.org> | 2022-06-07 19:04:26 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-06-07 19:04:26 -0700 |
commit | e082357d5a425875a2d7320f333e99981abdaa39 (patch) | |
tree | de1448425652573e5e9007b52aeb345ab89dd1d8 /modern/src | |
parent | 47c37648177bea8906c3b211cdcc13db0db8aa30 (diff) | |
download | trackermap-web-e082357d5a425875a2d7320f333e99981abdaa39.tar.gz trackermap-web-e082357d5a425875a2d7320f333e99981abdaa39.tar.bz2 trackermap-web-e082357d5a425875a2d7320f333e99981abdaa39.zip |
Fix user expiration (fix #957)
Diffstat (limited to 'modern/src')
-rw-r--r-- | modern/src/settings/UserPage.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/settings/UserPage.js b/modern/src/settings/UserPage.js index 062fada6..d4046fbf 100644 --- a/modern/src/settings/UserPage.js +++ b/modern/src/settings/UserPage.js @@ -234,8 +234,8 @@ const UserPage = () => { <TextField label={t('userExpirationTime')} type="date" - value={(item.expirationTime && item.expirationTime.format(moment.HTML5_FMT.DATE)) || '2999-01-01'} - onChange={(e) => setItem({ ...item, expirationTime: moment(e.target.value, moment.HTML5_FMT.DATE) })} + value={(item.expirationTime && moment(item.expirationTime).format(moment.HTML5_FMT.DATE)) || '2999-01-01'} + onChange={(e) => setItem({ ...item, expirationTime: moment(e.target.value, moment.HTML5_FMT.DATE).format() })} disabled={!manager} /> <TextField |