We're updating the issue view to help you get more done. 

expose TimeZone::createSystemTimeZone

Description

We received the following report from a user:

"i just fixed a bug caused by TimeZone::createTimeZone returning a cloned GMT when it doesn't recognize the id. what i really want is TimeZone::createSystemTimeZone, but at the moment i have to clone the useless object, extract its id, and compare that with the id i asked for. the comment in createTimeZone is particularly sad:"

1 2 3 4 5 6 7 8 /* We first try to lookup the zone ID in our system list. If this * fails, we try to parse it as a custom string GMT[+-]hh:mm. If * all else fails, we return GMT, which is probably not what the * user wants, but at least is a functioning TimeZone object. * * We cannot return NULL, because that would break compatibility * with the JDK. */

Environment

Status

Assignee

Dragan Besevic

Reporter

Markus Scherer

Time Needed

Days

tracCc

markus

tracCreated

Jan 26, 2011, 6:55 PM

tracOwner

dbesevic

tracProject

all

tracReporter

markus

tracStatus

accepted

tracWeeks

0.4

Components

Priority

medium