mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-06 01:08:50 +01:00
refactor due date tag on todo for mobile and non-mobile view
This commit is contained in:
parent
b7126998b2
commit
bafd55cf09
4 changed files with 82 additions and 65 deletions
|
|
@ -24,4 +24,9 @@ class Preference < ActiveRecord::Base
|
|||
|
||||
date.in_time_zone(time_zone).beginning_of_day
|
||||
end
|
||||
|
||||
def format_date (date)
|
||||
return date ? date.in_time_zone(time_zone).strftime("#{date_format}") : ''
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue