faa 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/faa/delay_feed.rb +2 -1
  2. metadata +1 -1
@@ -16,7 +16,8 @@ class FAA::DelayFeed
16
16
  document.root.children.each do |node|
17
17
  case node.name
18
18
  when 'Update_Time'
19
- @updated_at = Time.parse(node.content).utc
19
+ node.content =~ /([a-z]+) (\d+) (\d{2}):(\d{2}):(\d{2}) (\d{4})/i
20
+ @updated_at = Time.utc($6.to_i, Date::ABBR_MONTHNAMES.index($1), $2.to_i, $3.to_i, $4.to_i, $5.to_i)
20
21
  when 'Delay_type'
21
22
  @delays += FAA::Delay.from_xml(node)
22
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - FlightCaster