More generally, it's likely to depend on the product you are using. Saxon does have some facilities to output time zone names, but it's all rather dependent on geography. Start by specifying "us" as the "country" parameter, and see what you get. It will probably work OK if your timezone is a US one, but not otherwise. RFC 822 only allows a very limited number of timezone names (GMT plus the US ones - wow, this is a dated standard!), so you run the risk that Saxon will output one that isn't allowed by RFC 822. It would probably be safer to obtain the timezone programmatically (timezone-from-dateTime()), and format it yourself. Alternatively, RFC 822 allows -0400 (no colon), so why not use that?
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
|