Frederick Cheung wrote:
> On Nov 4, 5:32�pm, MR Damien <[EMAIL PROTECTED]> wrote:
>> Time.zone = @time_zone # 'Paris'
>> code, it failed.
>>
> Are you sure your date is an instance of Time and not an instance of
> Date? (for Date - 1 means -1 day so -3600 would be about 10 years ie
> somewhere in 1998).
> 
> Fred

Hi,

I am using DateTime.

@date = DateTime.strptime(params[:start_date], "%B %d, %Y %I:%M %p")

It seems that - 1 substract a day as you said. I will now search how to 
convert a DateTime to Time.

Thanks
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to