mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
Default to today on map view.
This commit is contained in:
parent
e34ab04512
commit
59e540995b
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ class MapController < ApplicationController
|
|||
private
|
||||
|
||||
def start_at
|
||||
return 1.month.ago.beginning_of_day.to_i if params[:start_at].nil?
|
||||
return Time.zone.today.beginning_of_day.to_i if params[:start_at].nil?
|
||||
|
||||
Time.zone.parse(params[:start_at]).to_i
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue