Displaying 1 result from an estimated 1 matches for "firstparse".
Did you mean:
fireparse
2011 Jan 03
8
Heroku, needs constant AppController updates?
...;
end #of location !=
@savedEvent.save
end # of if !test
end # of .new do
i += 1
end # of while
end #of if eventDate !=0
end # of if url passes
end # of def
# get the date from whatever string gets thrown
def date_from_string(date)
# should remove st rd nd and th
firstParse = Chronic.parse(date)
r1 = /[a-zA-Z]/
#daY Less than 12, assume chronic wrong for Britain, as long as also no
characters such as December,
#where it would be right
if firstParse.day <= 12 and !r1.match(date)
#swap month with day
firstParse = firstParse.change(:day => firstParse.month, :...