Hi, On Fri, Jun 18, 2010 at 7:21 PM, Evan Carroll <e...@dealermade.com> wrote: >> I'm trying to create a Date type, and one of the coercions I wanted >> was from a DateTime object. I can't get it to work. > > I believe your problem is UTC vs floating. ->from_epoch asserts the > time_zone is UTC unless provided. All other calls to new are > implicitly floating time_zones.
No. The coercion from DateTime is not even called. If you look at the output, each coercion prints a line to make sure its is called. There is no such line for the DateTime test. Bye, -- Pedro Melo http://www.simplicidade.org/ xmpp:m...@simplicidade.org mailto:m...@simplicidade.org