Thanks you all for this discussion. Last time I used Date and friends I got really frustrated. The navigation between the concept was not really good. I needed for example to manipulate a month in a year: February 2017 (I should check what I did). If I would have time and money I would - create a minimal package private only used by the kernel to load and save image and order changesets. - create a nicer package that we can use for app dev. Stef On Sat, Nov 25, 2017 at 11:54 AM, Alistair Grant <akgrant0710@gmail.com> wrote:
On 16 November 2017 at 20:23, Pavel Krivanek <pavel.krivanek@gmail.com> wrote:
I openend an issue: https://pharo.fogbugz.com/f/cases/20700/translateToUTC-does-not-work-on-Mont...
Thank you for reporting -- Pavel
PR: https://github.com/pharo-project/pharo/pull/545
Cheers, Alistair
2017-11-16 18:36 GMT+01:00 Trussardi Dario Romano <dario.trussardi@tiscali.it>:
Ciao,
i have a Pharo 4.0 image run on macbook with time zone is set to Rome +1 UTC .
When i send the translateToUTC to Date instance it is ok:
Date today > 2017-11-16T00:00:00+01:00
Date today translateToUTC > 2017-11-16T00:00:00+00:00
But for Month instance :
Month month: 6 year: 2015 > 2015-06-01T00:00:00+01:00
( Month month: 6 year: 2015 ) translateToUTC > 2015-06-01T00:00:00+01:00
The same problematic is for Year instance.
Considerations ?
Thanks,
Dario