Skip to content

Commit

Permalink
Use absolute offset value in event summary
Browse files Browse the repository at this point in the history
  • Loading branch information
RealOrangeOne committed Apr 17, 2024
1 parent 378cebe commit 513aecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion calmerge/calendars.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def create_offset_calendar_events(

if "SUMMARY" in day_component:
day_component["SUMMARY"] += (
f" ({days} days {'after' if days > 0 else 'before'})"
f" ({abs(days)} days {'after' if days > 0 else 'before'})"
)

new_components.append(day_component)
Expand Down

0 comments on commit 513aecd

Please sign in to comment.