We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e848661 commit 908565fCopy full SHA for 908565f
bin/setup
@@ -1,5 +1,6 @@
1
#!/usr/bin/env ruby
2
require "fileutils"
3
+require "active_support/time"
4
5
APP_ROOT = File.expand_path("..", __dir__)
6
APP_NAME = "coderdojo-jp"
@@ -29,7 +30,7 @@ FileUtils.chdir APP_ROOT do
29
30
system! 'bin/rails dojos:update_db_by_yaml'
31
system! 'bin/rails dojo_event_services:upsert'
32
- today = Time.zone.today
33
+ today = Time.now.in_time_zone('Tokyo').to_date
34
from = (today - 90).strftime('%Y%m')
35
to = today.prev_month.strftime('%Y%m')
36
if ENV['DOORKEEPER_API_TOKEN']
0 commit comments