Skip to content

Commit

Permalink
Revert "feat: default timezone to user's local timezone in activate f…
Browse files Browse the repository at this point in the history
…orm (#5374)"

This reverts commit 2b0c779.
  • Loading branch information
ZhouhaoJiang committed Jun 21, 2024
1 parent 995bfbf commit 16617ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/app/activate/activateForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ const ActivateForm = () => {

const [name, setName] = useState('')
const [password, setPassword] = useState('')
const [timezone, setTimezone] = useState(Intl.DateTimeFormat().resolvedOptions().timeZone)
const [timezone, setTimezone] = useState('Asia/Shanghai')
const [language, setLanguage] = useState(locale)
const [showSuccess, setShowSuccess] = useState(false)
const defaultLanguage = useCallback(() => (window.navigator.language.startsWith('zh') ? LanguagesSupported[1] : LanguagesSupported[0]) || LanguagesSupported[0], [])

const showErrorMessage = useCallback((message: string) => {
Toast.notify({
Expand Down

0 comments on commit 16617ff

Please sign in to comment.