mispy-archive / twitter_ebooks

Better twitterbots for all your friends~
MIT License
972 stars 140 forks source link

cannot determine timezone from nil (ebooks start) #137

Closed francovizcaya closed 7 years ago

francovizcaya commented 7 years ago

E:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rufus-scheduler-3.3.3/lib/rufus/scheduler/zotime.rb:41:in `initialize': cannot determine timezone from nil (etz:nil,tnz:"Pacific Standard Time",tzid:nil) (ArgumentError)

no idea what to do

francovizcaya commented 7 years ago

i got it, if anyone else runs into this just add ENV['TZ'] = 'Continent/City' to the top of bots.rb (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) and install the 'tzinfo-data' gem