Chronic.parse("2011-03-10")
=> Thu Mar 10 12:00:00 -0600 2011
Time.parse("2011-03-10")
=> Thu Mar 10 00:00:00 -0600 2011
How do I fix that, it should be going to the beginning of the day.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Internally, Chronic uses the complete time range given by the string, and will use the midpoint of that range as a guess for what you mean unless you tell it otherwise.
might be what you’re after.