Rakefile in ziptz-2.0.6 vs Rakefile in ziptz-2.0.7
- old
+ new
@@ -36,9 +36,11 @@
puts 'Retrieving zip codes from database'
data = {}
ZipCode.find_each do |zip|
+ next if zip.time_zone.blank? || zip.day_light_saving.blank?
+
data[zip.zip_code] ||= {}
data[zip.zip_code][:tz] ||= zip.time_zone
data[zip.zip_code][:dst] ||= zip.day_light_saving
end