Skip to content

Commit

Permalink
fix: remove timeZone
Browse files Browse the repository at this point in the history
  • Loading branch information
alaa-yahia committed Sep 26, 2024
1 parent f8b7345 commit 7102f09
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
3 changes: 1 addition & 2 deletions components/calendar/src/calendar-input/calendar-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,10 @@ export const CalendarInput = ({
() => ({
calendar,
locale,
timeZone, // todo: we probably shouldn't have had timezone here in the first place
numberingSystem,
weekDayFormat,
}),
[calendar, locale, numberingSystem, timeZone, weekDayFormat]
[calendar, locale, numberingSystem, weekDayFormat]
)

const pickerResults = useDatePicker({
Expand Down
25 changes: 13 additions & 12 deletions components/calendar/src/stories/calendar-input.prod.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,19 @@ export default {

const buildCalendar =
({ date, locale, calendar }) =>
() => (
<CalendarStoryWrapper
component={CalendarInput}
dir="ltr"
timeZone="Africa/Khartoum"
weekDayFormat="short"
date={date}
locale={locale}
calendar={calendar}
onDateSelect={() => {}}
/>
)
() =>
(
<CalendarStoryWrapper
component={CalendarInput}
dir="ltr"
timeZone="Africa/Khartoum"
weekDayFormat="short"
date={date}
locale={locale}
calendar={calendar}
onDateSelect={() => {}}
/>
)

export const EthiopicWithAmharic = buildCalendar({
calendar: 'ethiopic',
Expand Down

0 comments on commit 7102f09

Please sign in to comment.