Hi Tomas,

Thanks a lot - my problem is that I did not understand that it's a problem
of inspect, not of Time.now itself :)

I've tried the build from dlr-26718.zip (the latest I have) - it works fine.

Thanks again,
Maxim


-----Original Message-----
From: ironruby-core-boun...@rubyforge.org [mailto:
ironruby-core-boun...@rubyforge.org] On Behalf Of Tomas Matousek
Sent: Thursday, August 20, 2009 8:29 PM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] Time.now and
System::Text::EncoderFallbackException

DataTime.inspect is supposed to use invariant culture for formatting the
time. I think I've fixed this recently. Can you try the latest build?
>>> Time.now
=> Thu Aug 20 09:19:50 -07:00 2009

As a workaround you can do  Time.now.ToString('hh mm ss, MMM yyyy') for
example.

Note that MRI 1.8 doesn't support encoded strings well. We are trying to
make them work but we haven't fixed all Ruby string manipulating methods
yet. Everything should just work if you use CLR strings.

Tomas
_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to