Skip to content

Commit

Permalink
fix: make whole days start at right date
Browse files Browse the repository at this point in the history
  • Loading branch information
SilasPeters committed Dec 24, 2024
1 parent a8158f1 commit fd09224
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/activity.rb
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def format_utc(datetime)

# Format a datetime to a whole day for the iCalendar format
def format_whole_day(datetime)
datetime.utc.strftime('%Y%m%d')
datetime.strftime('%Y%m%d')
# For whole days, do not convert to UTC, because if 'start' is a date, it's
# time will be 00:00:00 and will be converted to the previous day
end
Expand Down

0 comments on commit fd09224

Please sign in to comment.