You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
226 B
12 lines
226 B
1 year ago
|
# frozen_string_literal: true
|
||
|
|
||
|
module Admin::AnnouncementsHelper
|
||
|
def datetime_pattern
|
||
|
'[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}(:[0-9]{2}){1,2}'
|
||
|
end
|
||
|
|
||
|
def datetime_placeholder
|
||
|
Time.zone.now.strftime('%FT%R')
|
||
|
end
|
||
|
end
|