Times are now rendered using the browsers time zone (#2438)

This commit is contained in:
Ahmad Farhat
2021-01-17 14:48:51 -05:00
committed by GitHub
parent fed6ca4d03
commit 4bf0811136
14 changed files with 20 additions and 28 deletions

View File

@ -135,4 +135,10 @@ module ApplicationHelper
def show_signin
!@hide_signin.present?
end
# Returns a more friendly/readable date time object
def view_date(date)
return "" if date.nil? # Handle invalid dates
local_time(date)
end
end