Thanks for reporting it. A strange one: when I run from the command line I get

2010-09-09T12:00:00-06:00 -06:00 -06:00 -06:00 -06:00 -06:00 -06:00

but when I run from my development environment I get

2010-09-09T12:00:00-06:00 -06:00 MDT MDT -06:00 MDT MDT

I'll investigate. Either there's some difference in the version of the Saxon code I'm running in the two cases, or there's some context difference such as the Java default Locale, or JDK5 vs JDK6. I'm not aware of any recent bugs in this area. I'm simulating your result by using -now:2010-09-09T12:00:00-06:00 on the command line: I don't think this disturbs the result (at least in cases where the country argument is present) but I need to keep an open mind.

Michael Kay
Saxonica



On 13/09/2010 9:09 PM, Victor Mote wrote:
Hi Folks:

I am using Saxon-HE 9.2.1.2 with the 9.1 AntTransform, both of which appear to be the latest, greatest available from Sourceforge. I have no reason to think that the AntTransform is part of the problem, but neither have I excluded it as a possibility. The login includes the following line (saxon-xslt being the Ant taskdef name):
[saxon-xslt] AntTransform.execute() schema-aware=false version 9.2.1.2

My stylesheet includes the following:
  <xsl:value-of select="current-dateTime()"/>
  <xsl:text> </xsl:text>
  <xsl:value-of select="format-dateTime(current-dateTime(), '[ZN, *-3]')"/>
  <xsl:text> </xsl:text>
  <xsl:value-of select="format-dateTime(current-dateTime(), '[ZN, *-3]', (), (), 'us')"/>
  <xsl:text> </xsl:text>
  <xsl:value-of select="format-dateTime(current-dateTime(), '[ZN, *-3]', 'en', 'AD', 'us')"/>
  <xsl:text> </xsl:text>
  <xsl:value-of select="format-dateTime(current-dateTime(), '[ZN]')"/>
  <xsl:text> </xsl:text>
  <xsl:value-of select="format-dateTime(current-dateTime(), '[ZN]', (), (), 'us')"/>
  <xsl:text> </xsl:text>
  <xsl:value-of select="format-dateTime(current-dateTime(), '[ZN]', 'en', 'AD', 'us')"/>

The output from this is:
2010-09-13T13:00:58.359-06:00 -06:00 -06:00 -06:00 -06:00 -06:00 -06:00

For at least the 3rd & 6th timezone outputs, I expect them to show "MDT" (U.S. Mountain Daylight Time), or, at worst, an off-by-one timezone for standard time (I think it would be CST, U.S. Central Standard Time, in this case).

I get similar results for the format-date(current-date() ...) and format-time(current-time() ...) variants.

Am I missing something? or is there a bug here?

Thanks in advance for your help ... and in arrears for such a great product.

Victor Mote
------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ saxon-help@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/saxon-help