mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-25 08:34:08 +01:00
Update the date formatting syntax
This commit is contained in:
parent
3fc943ce2a
commit
13bdef74b3
14 changed files with 36 additions and 36 deletions
6
test/fixtures/notes.yml
vendored
6
test/fixtures/notes.yml
vendored
|
|
@ -4,15 +4,15 @@
|
|||
# rails does automatically in models or controllers! Convert to utc manually!
|
||||
<%
|
||||
def today
|
||||
Time.zone.now.utc.to_s(:db)
|
||||
Time.zone.now.utc.to_formatted_s(:db)
|
||||
end
|
||||
|
||||
def next_week
|
||||
1.week.from_now.utc.to_s(:db)
|
||||
1.week.from_now.utc.to_formatted_s(:db)
|
||||
end
|
||||
|
||||
def last_week
|
||||
1.week.ago.utc.to_s(:db)
|
||||
1.week.ago.utc.to_formatted_s(:db)
|
||||
end
|
||||
%>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue