       if date_toggle_state.start
         earliest = date_toggle_state.start + tz_offset
 
-
       if date_toggle_state.end 
         latest = date_toggle_state.end + tz_offset
-
 
     (earliest == null || earliest <= date) && (latest == null || latest >= date) 
 

                className: 'custom_view_triangle'
                style: 
                  left: triangle_left
                  bottom: if browser.is_mobile then -27 else -26
                dangerouslySetInnerHTML: __html: """<svg width="25px" height="13px" viewBox="0 0 25 13" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="Page-2" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Artboard" transform="translate(-1086.000000, -586.000000)" fill="#FFFFFF" stroke="#979797"><polyline id="Path" points="1087 599 1098.5 586 1110 599"></polyline></g></g></svg>"""





date_option_changed = (activated) ->
  date_toggle_state = fetch 'opinion-date-filter'
  tz_offset = new Date().getTimezoneOffset() * 60 * 1000

  pass = (u, opinion, proposal) -> 
    date = new Date(opinion.updated_at).getTime()
    now = Date.now()

    earliest = latest = null

    if activated.key != 'custom'
      clear_custom_date()

