I'm using ruby on rails to communicate with a JADE agent server over
If I send over a DateTime.now it is accepted by the JADE server. As
does 5.minutes.since DateTime.now and such.
But if I pull a datetime out of a rails model and try to send that
over I get an error. How to I convert rails model's datetime to the
whatever format DateTIme.now is producing that works perfectly.
Thanks.. I could hack up the string.. but i'm assuming there is some
simple way to do this...
working format (p DateTime.now):
Tue, 29 Sep 2009 22:42:43 -0300
rails model not working format (p @seller.deadline #where seller is a
Tue, 29 Sep 2009 22:42:00 ADT -03:00