faa 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/faa/delay_feed.rb +2 -1
- metadata +1 -1
data/lib/faa/delay_feed.rb
CHANGED
@@ -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
|
-
|
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
|