mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-24 03:00:12 +01:00
Converting data to datetime to prevent the in_time_zone unknown function error on line 118.
This commit is contained in:
parent
2980de2d8d
commit
f42025e5da
1 changed files with 1 additions and 1 deletions
|
|
@ -115,7 +115,7 @@ class ApplicationController < ActionController::Base
|
|||
def format_date(date)
|
||||
if date
|
||||
date_format = prefs.date_format
|
||||
formatted_date = date.in_time_zone(prefs.time_zone).strftime("#{date_format}")
|
||||
formatted_date = date.to_datetime.in_time_zone(prefs.time_zone).strftime("#{date_format}")
|
||||
else
|
||||
formatted_date = ''
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue