You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
用户不填 value / defaultValue 的情况下,不论哪个时区,默认选中的时间都从0开始
Steps To Reproduce
No response
ReproducibleCode
import React, { useState, useMemo } from 'react';
import * as dateFns from 'date-fns';
import { TimePicker, Button } from '@douyinfe/semi-ui';
import { IconChevronDown, IconClose } from '@douyinfe/semi-icons';
function Demo() {
const formatToken = 'HH:mm:ss';
const [time, setTime] = useState();
return ( <TimePicker value={time} format={formatToken} onChange={time => setTime(time)} triggerRender={({ placeholder }) => ( <Tag color='cyan' size='large' shape='circle' style={{ padding: 12, paddingRight: 16, fontSize: 14 }} theme={'light'} prefixIcon={<IconTimePicker />} > {time ? dateFns.format(time, formatToken) : placeholder} </Tag> )} />);
}
Here is the code that you can reproduce the problem. like I mentioned before due to the time zone setting, it starts from 8 on my computer
Environment
- OS:
- browser:
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Which Component
TimePicker
Semi Version
latest
Current Behavior
仅在东八区时区下,时间从0开始,别的时区下(如图)不是从0开始的时间
Expected Behavior
用户不填 value / defaultValue 的情况下,不论哪个时区,默认选中的时间都从0开始
Steps To Reproduce
No response
ReproducibleCode
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: