Skip to content

Commit e848661

Browse files
committed
Use Time.zone.today instead of Date.today that requires 'date' gem
1 parent e50ae72 commit e848661

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

bin/setup

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@ FileUtils.chdir APP_ROOT do
2929
system! 'bin/rails dojos:update_db_by_yaml'
3030
system! 'bin/rails dojo_event_services:upsert'
3131

32-
today = Date.today
33-
from = (today - 90).strftime('%Y%m')
34-
to = today.prev_month.strftime('%Y%m')
35-
32+
today = Time.zone.today
33+
from = (today - 90).strftime('%Y%m')
34+
to = today.prev_month.strftime('%Y%m')
3635
if ENV['DOORKEEPER_API_TOKEN']
3736
system! "bin/rails statistics:aggregation[#{from},#{to}]"
3837
system! 'bin/rails upcoming_events:aggregation'

0 commit comments

Comments
 (0)