I find the concept of translating TZ of a Date silly. The real bug imho should be that it prints both time and TZ.... this is Date, not DateAndTime.
Peter On Thu, Nov 16, 2017 at 8:23 PM, Pavel Krivanek <pavel.kriva...@gmail.com> wrote: > I openend an issue: https://pharo.fogbugz.com/f/cases/20700/ > translateToUTC-does-not-work-on-Month-and-Year > > Thank you for reporting > -- Pavel > > 2017-11-16 18:36 GMT+01:00 Trussardi Dario Romano < > dario.trussa...@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 >> > >