forked from External/greenlight
Times are now rendered using the browsers time zone (#2438)
This commit is contained in:
@ -31,13 +31,6 @@ module AdminsHelper
|
||||
@running_room_bbb_ids.include?(id)
|
||||
end
|
||||
|
||||
# Returns a more friendly/readable date time object
|
||||
def friendly_time(date)
|
||||
return "" if date.nil? # Handle invalid dates
|
||||
|
||||
I18n.l date, format: "%B %d, %Y %H:%M UTC"
|
||||
end
|
||||
|
||||
# Site Settings
|
||||
|
||||
def admin_invite_registration
|
||||
|
@ -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
|
||||
|
@ -17,11 +17,6 @@
|
||||
# with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
module RecordingsHelper
|
||||
# Helper for converting BigBlueButton dates into the desired format.
|
||||
def recording_date(date)
|
||||
I18n.l date, format: "%B %d, %Y"
|
||||
end
|
||||
|
||||
# Helper for converting BigBlueButton dates into a nice length string.
|
||||
def recording_length(playbacks)
|
||||
# Looping through playbacks array and returning first non-zero length value
|
||||
|
Reference in New Issue
Block a user