To reproduce this, start up Pharo, create a Playground,
and in the Playground type
    DateAndTime now timeZone
and <Cmd+p> to print it.

But do this in New Zealand.  Changing to <Cmd+i>

On 22/11/17 1:47 PM, pharo-users-requ...@lists.pharo.org wrote:
Send Pharo-users mailing list submissions to
        pharo-users@lists.pharo.org

Inspector on a TimeZone (error printing)
...
  self         error printing
  offset       0:13:00:00
  abbreviation nil
  name         nil

The simplest possible change would be to make
TimeZone>>abbreviation be

    ^abbreviation ifNil: [offset printString]

after which
    DateAndTime now timeZone<Cmd+p>
=>  a TimeZone(0:13:00:00)

Another approach would be to paste

self offset: 12 hours name: 'New Zealand Standard Time' abbreviation: 'NZST'. self offset: 13 hours name: 'New Zealand Daylight Time' abbreviation: 'NZDT'.

into TimeZone class>>timeZones

but that wouldn't fix the problem for anywhere else.

Reply via email to