chronic_between 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/chronic_between.rb +1 -1
- metadata +1 -1
data/lib/chronic_between.rb
CHANGED
@@ -28,7 +28,7 @@ class ChronicBetween
|
|
28
28
|
d1, d2, rt1, rt2 = raw1.captures
|
29
29
|
date_ranges << [[d1,rt1], [d2,rt2]].map do |d,r|
|
30
30
|
cdate = Chronic.parse(d, :now => (date - 1))
|
31
|
-
DateTime.parse(cdate
|
31
|
+
DateTime.parse(cdate.strftime("%d-%b-%y") + ' ' + r)
|
32
32
|
end
|
33
33
|
|
34
34
|
else
|