ruby on rails - Display attributes in loca ltime in ActiveAdmin Admin panel -
i using activeadmin in ruby on rails application , need display time attributes created_by_id
, updated_by_id
in localtime not know how write in activeadmin formtastic dsl. following current code listing:
show |channel| attributes_table row :created_by_id row :updated_by_id
you can set default time_zone
in active_admin initializer (config/initializers/active_admin.rb
) file this:
config.namespace :admin |admin| admin.time_zone = 'eastern time (us & canada)' end
please refer link: how change how activeadmin displays time (every time)
Comments
Post a Comment