Added timezone

This commit is contained in:
Luiz F Picolo 2021-10-08 20:48:07 -04:00
parent ced85f4bbd
commit 10f853453b

View File

@ -1,6 +1,9 @@
require 'speedtest' require 'speedtest'
require 'sinatra/activerecord' require 'sinatra/activerecord'
Time.zone = "America/Campo_Grande"
ActiveRecord::Base.default_timezone = :local
class Rate < ActiveRecord::Base class Rate < ActiveRecord::Base
def self.get_download def self.get_download
all.collect { |p| [p.created_at.strftime('%d/%m %H:%M'), p.download] } all.collect { |p| [p.created_at.strftime('%d/%m %H:%M'), p.download] }