From fd0922470db9bf5f50613d9d0be630156ff6ddc1 Mon Sep 17 00:00:00 2001 From: Silas <69711739+SilasPeters@users.noreply.github.com> Date: Tue, 24 Dec 2024 17:17:46 +0100 Subject: [PATCH] fix: make whole days start at right date --- app/models/activity.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/activity.rb b/app/models/activity.rb index 89483e07f..2698fa28e 100644 --- a/app/models/activity.rb +++ b/app/models/activity.rb @@ -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