harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Zhou (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-6269) [classlib][luni] Default GMT TimeZone has no display name defined
Date Wed, 15 Jul 2009 02:42:14 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-6269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12731245#action_12731245

Kevin Zhou commented on HARMONY-6269:

Hi Cath,
I suggest that you refer to SPEC of ICU to confirm whether it provides such a functionality.
Or is the pattern "z" incorrect? If not, I think you can add a private method inside TimeZone
of Harmony to extract and return the abbreviation of names instead. 

> [classlib][luni] Default GMT TimeZone has no display name defined
> -----------------------------------------------------------------
>                 Key: HARMONY-6269
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6269
>             Project: Harmony
>          Issue Type: Bug
>         Environment: all
>            Reporter: Catherine Hope
>            Priority: Minor
> The default TimeZone, GMT, has no display names defined - calling getDisplayName() always
returns "GMT+00:00" instead of "Greenwich Mean Time" or the short form "GMT".  This also has
implications for date formatting - creating a SimpleDateFormat with pattern "z", will display
the time zone as "GMT+00:00" instead of "GMT".  The harmony implementation of TimeZone.getDisplayName()
is deferring to com.ibm.icu.util.TimeZone for the value, which has some long display names
set , but not GMT, so I'm unsure where to fix this.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message