ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 55940] New: Wrong timestamp format output for Year (only today december 30 2013)
Date Mon, 30 Dec 2013 11:28:09 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=55940

            Bug ID: 55940
           Summary: Wrong timestamp format output for Year (only today
                    december 30 2013)
           Product: Ant
           Version: 1.9.2
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
          Assignee: notifications@ant.apache.org
          Reporter: bouzas@gmail.com

Wrong year is echoed when format timestamp in a simple task:

<target name="Test">
    <tstamp>
          <format property="Year" pattern="YYYY" ></format>
    </tstamp>
    <echo>ANTVER ${antversion}  Year ${Year}   ${TODAY}</echo> 

</target>

The output for this is:
ANTVER 1.9.2  Year 2014   December 30 2013

Notice that the value in property "Year" is wrong. This has been working a few
days ago. So it has to do with today's date (December 30th) which is very close
to 2014.

I use this property as build number.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Mime
View raw message