File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import useTranslation from 'next-translate/useTranslation';
1515import { TCallback } from 'lib/model/callback' ;
1616import { Timeslot } from 'lib/model/timeslot' ;
1717import { useClickContext } from 'lib/hooks/click-outside' ;
18+ import { useUser } from 'lib/context/user' ;
1819
1920import SelectSurface from './select-surface' ;
2021import styles from './time-select.module.scss' ;
@@ -65,6 +66,7 @@ function TimeSelect({
6566 const [ menuOpen , setMenuOpen ] = useState < boolean > ( false ) ;
6667 const timeoutId = useRef < ReturnType < typeof setTimeout > > ( ) ;
6768
69+ const { user } = useUser ( ) ;
6870 const { lang : locale } = useTranslation ( ) ;
6971 const { updateEl, removeEl } = useClickContext ( ) ;
7072
@@ -100,7 +102,7 @@ function TimeSelect({
100102 readOnly
101103 textarea = { false }
102104 inputRef = { inputRef }
103- value = { value ?. toString ( locale ) || '' }
105+ value = { value ?. toString ( locale , user . timezone ) || '' }
104106 className = { styles . field }
105107 onFocus = { ( ) => {
106108 if ( onFocused ) onFocused ( ) ;
You can’t perform that action at this time.
0 commit comments