floraison / et-orbi

Time zones for fugit and rufus-scheduler. Urbi et Orbi.
MIT License
24 stars 11 forks source link

Cannot determine timezone from ActiveSupport::TimeZone #8

Closed jmettraux closed 7 years ago

jmettraux commented 7 years ago

Initially seen at https://github.com/jmettraux/rufus-scheduler/issues/261

Replicated in https://gist.github.com/jmettraux/558216497e746da6490c11f305477e69

#<ActiveSupport::TimeZone:0x00007fc6c28a6868 @name="America/New_York", @utc_offset=nil,
  @tzinfo=#<TZInfo::DataTimezone: America/New_York>>
/Users/jmettraux/.gem/ruby/2.4.2/gems/et-orbi-1.0.7/lib/et-orbi.rb:304:in `initialize':
  Cannot determine timezone from #<ActiveSupport::TimeZone:0x00007fc6c28a6868
  @name="America/New_York", @utc_offset=nil,
  @tzinfo=#<TZInfo::DataTimezone: America/New_York>> (ArgumentError)
(secs:1508824281.618999,
  utc~:"0047-10-24 05:51:21.6189990043640137",ltz~:"EST")
(etz:nil,tnz:"JST",tzid:nil,rv:"2.4.2",rp:"x86_64-darwin14",eov:"1.0.7",
  rorv:"5.1.4",astz:[ActiveSupport::TimeZone, "America/New_York"],
  debian:nil,centos:nil,osx:"Asia/Tokyo")
Try setting `ENV['TZ'] = 'Continent/City'` in your script (see
  https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)
and adding gem 'tzinfo-data'
    from t.rb:14:in `new'
    from t.rb:14:in `<main>'
make: *** [run] Error 1