Initial import from local backup (Documents-Playground/pakerpale)
This commit is contained in:
8
node_modules/tz-offset/generate.rb
generated
vendored
Normal file
8
node_modules/tz-offset/generate.rb
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
require 'active_support/all'
|
||||
|
||||
zones = Hash.new
|
||||
timezones = ActiveSupport::TimeZone.all.each { |tz|
|
||||
zones[tz.tzinfo.name] = tz.utc_offset / 60 * -1
|
||||
}
|
||||
|
||||
File.open("offsets.json", 'w') { |file| file.write(zones.to_json) }
|
||||
Reference in New Issue
Block a user