aboutsummaryrefslogtreecommitdiff
path: root/modern
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-07 19:04:26 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-07 19:04:26 -0700
commite082357d5a425875a2d7320f333e99981abdaa39 (patch)
treede1448425652573e5e9007b52aeb345ab89dd1d8 /modern
parent47c37648177bea8906c3b211cdcc13db0db8aa30 (diff)
downloadtrackermap-web-e082357d5a425875a2d7320f333e99981abdaa39.tar.gz
trackermap-web-e082357d5a425875a2d7320f333e99981abdaa39.tar.bz2
trackermap-web-e082357d5a425875a2d7320f333e99981abdaa39.zip
Fix user expiration (fix #957)
Diffstat (limited to 'modern')
-rw-r--r--modern/src/settings/UserPage.js4
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