Skip to content

Commit

Permalink
Revert "feat: display timezone adjusted custom time range in time pic…
Browse files Browse the repository at this point in the history
…ker placeholder"

This reverts commit 429c87a.
  • Loading branch information
ahmadshaheer committed Nov 25, 2024
1 parent 234d71a commit d5dc65a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions frontend/src/container/TopNav/DateTimeSelectionV2/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import getTimeString from 'lib/getTimeString';
import history from 'lib/history';
import { isObject } from 'lodash-es';
import { Check, Copy, Info, Send, Undo } from 'lucide-react';
import { useTimezone } from 'providers/Timezone';
import { useCallback, useEffect, useMemo, useState } from 'react';
import { useQueryClient } from 'react-query';
import { connect, useSelector } from 'react-redux';
Expand Down Expand Up @@ -614,8 +613,6 @@ function DateTimeSelection({
);
};

const { timezone } = useTimezone();

return (
<div className="date-time-selector">
{showResetButton && selectedTime !== defaultRelativeTime && (
Expand Down Expand Up @@ -667,8 +664,8 @@ function DateTimeSelection({
setIsValidteRelativeTime(isValid);
}}
selectedValue={getInputLabel(
dayjs(minTime / 1000000).tz(timezone.value),
dayjs(maxTime / 1000000).tz(timezone.value),
dayjs(minTime / 1000000),
dayjs(maxTime / 1000000),
selectedTime,
)}
data-testid="dropDown"
Expand Down

0 comments on commit d5dc65a

Please sign in to comment.