Update the date formatting syntax

This commit is contained in:
Jyri-Petteri Paloposki 2025-06-29 13:25:14 +03:00
parent 3fc943ce2a
commit 13bdef74b3
14 changed files with 36 additions and 36 deletions

View file

@ -4,13 +4,13 @@
# rails does automatically in models or controllers! Convert to utc manually!
<%
def today
Time.zone.now.utc.beginning_of_day.to_s(:db)
Time.zone.now.utc.beginning_of_day.to_formatted_s(:db)
end
def yesterday
1.day.ago.utc.beginning_of_day.to_s(:db)
1.day.ago.utc.beginning_of_day.to_formatted_s(:db)
end
def last_week
1.week.ago.utc.beginning_of_day.to_s(:db)
1.week.ago.utc.beginning_of_day.to_formatted_s(:db)
end
%>