1
0

announcements_helper.rb 226 B

1234567891011
  1. # frozen_string_literal: true
  2. module Admin::AnnouncementsHelper
  3. def datetime_pattern
  4. '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}(:[0-9]{2}){1,2}'
  5. end
  6. def datetime_placeholder
  7. Time.zone.now.strftime('%FT%R')
  8. end
  9. end