You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Kevin Zhou (JIRA)" <ji...@apache.org> on 2009/07/15 04:42:14 UTC
[jira] Commented: (HARMONY-6269) [classlib][luni] Default GMT
TimeZone has no display name defined
[ 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.