June 5, 2013
11:03 p.m.
On 2013-06-06, at 00:41, dmacq <dmacq@instantiations.com> wrote:
In Pharo V2, if I execute this snippet:
| x | x := DateAndTime year: 1991 day: 196 hour: 20 minute: 5 second: 7. x asTime inspect
I get '12:0-54:0-53 am' which is not what I expect.
- where did you get this string from? that looks very strange. If I do what you describe in a fresh 2.0 Image I get '8:05:07 pm' as expected. - Just to be sure, which exact Pharo version are you using (print SystemVersion current)?
DateAndTime>>asTime changed from 1.4 to 2.0.
yes, the internals of DateAndTime are now in UTC and no longer local time.
Any ideas?