Added timezone
This commit is contained in:
parent
ced85f4bbd
commit
10f853453b
@ -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] }
|
||||
|
Loading…
Reference in New Issue
Block a user