Skip to content

Commit

Permalink
Add 6h to RRule editor component (for end date too)
Browse files Browse the repository at this point in the history
  • Loading branch information
reaper committed Dec 30, 2024
1 parent 0cf683d commit 2b77099
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/ui/src/ui/RRuleEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,10 @@ export default function RRuleEditor({ label, onChange, value }: RRuleEditorProps
onBlur={(event) => {
const value = event.target.value
const date = parse(value, 'yyyy-MM-dd', new Date())
setValues({ ...options, until: value ? date : null })

// KELINDI
const overridenDate = add(date, { hours: 6 })
setValues({ ...options, until: value ? overridenDate : null })
}}
/>
<TextInput
Expand Down

0 comments on commit 2b77099

Please sign in to comment.