This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 3021 - [XSLT 2.0] Timezone names in format-time()
Summary: [XSLT 2.0] Timezone names in format-time()
Status: CLOSED WONTFIX
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 2.0 (show other bugs)
Version: Candidate Recommendation
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-20 15:46 UTC by Michael Kay
Modified: 2006-04-20 13:57 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2006-03-20 15:46:55 UTC
In the spec of format-time(), the picture "[ZN]" indicates use of a timezone name such as PST. Presumably the country code and language code can be used to decide among the many different names for a given timezone offset (see http://www.timeanddate.com/library/abbreviations/timezones/). However, this doesn't solve the problem of summer time (daylight savings time). Given language "en" and country "US", a timezone of -07:00 can mean MST or PDT. One could resolve it, at least for dates in the past, using a perpetual calendar of dates on which the clocks moved forwards or backwards, but that doesn't seem a reasonable burden on implementations.

I would suggest that in the absence of a more coherent approach to our handling of timezones as distinct from time offsets, we remove this feature. I don't think it's implementable in an interoperable way.
Comment 1 Michael Kay 2006-04-19 18:53:43 UTC
The XSL WG discussed this and decided to make no change to the specification.