|
|
|
@ -49,6 +49,11 @@ class FormHandler |
|
|
|
today < window_end_date ? today.year - 1 : today.year |
|
|
|
today < window_end_date ? today.year - 1 : today.year |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def collection_start_date(date) |
|
|
|
|
|
|
|
window_end_date = Time.zone.local(date.year, 4, 1) |
|
|
|
|
|
|
|
date < window_end_date ? Time.zone.local(date.year - 1, 4, 1) : Time.zone.local(date.year, 4, 1) |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def current_collection_start_date |
|
|
|
def current_collection_start_date |
|
|
|
Time.zone.local(current_collection_start_year, 4, 1) |
|
|
|
Time.zone.local(current_collection_start_year, 4, 1) |
|
|
|
end |
|
|
|
end |
|
|
|
|