Skip to content

Commit

Permalink
Avoid addition of extra 59 seconds to the timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
deepaksftc committed Jul 31, 2024
1 parent b412c2e commit 4dafe67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/frontend/src/components/call/CreateUpdateCall.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ const CreateUpdateCall = ({ call, close }: CreateUpdateCallProps) => {
.startOf('day');
const currentDayEnd = DateTime.now()
.setZone(timezone || undefined)
.endOf('day');
.endOf('day')
.set({ second: 0, millisecond: 0 });

const getDateTimeFromISO = (value: string) =>
DateTime.fromISO(value, {
Expand Down

0 comments on commit 4dafe67

Please sign in to comment.