lib/active_shipping/carriers/usps.rb in active_shipping-1.6.5 vs lib/active_shipping/carriers/usps.rb in active_shipping-1.7.0
- old
+ new
@@ -245,11 +245,11 @@
time = if node.at('EventDate').text.present?
timestamp = "#{node.at('EventDate').text}, #{node.at('EventTime').text}"
Time.parse(timestamp)
else
- # Arbitrary time in past, because we need to sort properly by time
- Time.parse("Jan 01, 2000")
+ # Epoch time, because we need to sort properly by time
+ Time.at(0)
end
event_code = node.at('EventCode').text
city = node.at('EventCity').try(:text)
state = node.at('EventState').try(:text)