Skip to content

Commit

Permalink
pass timezone when formatting value
Browse files Browse the repository at this point in the history
  • Loading branch information
NyxinU committed Nov 23, 2024
1 parent fbcee92 commit 77576d6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export const DateTimePicker = factory<DateTimePickerFactory>((_props, ref) => {

const [dropdownOpened, dropdownHandlers] = useDisclosure(false);
const formattedValue = _value
? dayjs(_value).locale(ctx.getLocale(locale)).format(_valueFormat)
? dayjs(_value).locale(ctx.getLocale(locale)).tz(ctx.getTimezone()).format(_valueFormat)
: '';

const handleTimeChange = (event: React.ChangeEvent<HTMLInputElement>) => {
Expand Down

0 comments on commit 77576d6

Please sign in to comment.