you are aware that both of those dates are correct, just in different parts of the world? Of course, the first could be 1 March, 2012 just a easily as 3 January, 2012.
If you make it consistent, which way are you leaning towards? Maybe more specific asXXXDate keywords to indicate which one you want? -Chris On Sun, Oct 28, 2012 at 10:22 AM, Denis Kudriashov <[email protected]> wrote: > Hello. > > I found very crappy behaviour: > > '01.03.2012' asDate => 3 January 2012 > '30.03.2012' asDate => 30 March 2012 > > As you can see for first line #asDate use first number as month. But for > last line It use second number as month. > > We should fix or remove such inconsistent behaviour. > > We all like to test something inside debugger or browser. Such way I was > learn how I can parse date from String. And I saved it immediatelly at my > code. But when current date become greater then day 12 my code become > broken. > And when I see this there was many nice russian words :)) > > I open ticket http://code.google.com/p/pharo/issues/detail?id=6884 > >
