Module: LocalTimeHelper
- Defined in:
- app/helpers/local_time_helper.rb
Instance Method Summary collapse
Instance Method Details
#localtime(time, fmt = '%Y-%m-%d %H:%M') ⇒ Object
2 3 4 5 |
# File 'app/helpers/local_time_helper.rb', line 2 def localtime time, fmt='%Y-%m-%d %H:%M' return unless time time_tag time, time.strftime(fmt), data: { strftime: fmt } end |