lib/eia/data.rb in eia-1.3.5 vs lib/eia/data.rb in eia-1.3.6
- old
+ new
@@ -19,10 +19,10 @@
def standardize_date(date, periodicity)
#date is a four digit number
if periodicity == 5 then
return "01/01/#{date}"
- elsif periodicity == 4 or periodicity == 3 then
+ elsif periodicity == 4 or periodicity == 2 then
y = date[0..3]
m = date[4..5]
return "01/#{m}/#{y}"
else