From 10f853453b110193b11868633adfaaec4b85f655 Mon Sep 17 00:00:00 2001 From: Luiz Picolo Date: Fri, 8 Oct 2021 20:48:07 -0400 Subject: [PATCH] Added timezone --- models/rate.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/models/rate.rb b/models/rate.rb index 3b1aa61..bc482f8 100644 --- a/models/rate.rb +++ b/models/rate.rb @@ -1,6 +1,9 @@ require 'speedtest' require 'sinatra/activerecord' +Time.zone = "America/Campo_Grande" +ActiveRecord::Base.default_timezone = :local + class Rate < ActiveRecord::Base def self.get_download all.collect { |p| [p.created_at.strftime('%d/%m %H:%M'), p.download] }