From e082357d5a425875a2d7320f333e99981abdaa39 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 7 Jun 2022 19:04:26 -0700 Subject: Fix user expiration (fix #957) --- modern/src/settings/UserPage.js | 4 ++-- 1 file 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 = () => { 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} />