Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

Issue with time zone in ANT

ms harsha

2008-04-15

Replies: Find Java Web Hosting

Author LoginPost Reply

Hi,

I am adding some entry in the properties file regarding the date and
time.

<entry key="build.date.detailed" value="now" type="date"
pattern="MM/dd/yyyy HH:mm:ss z"/>

When i execute this above line in my laptop its showing

04/14/2008:11:31:21 IST

But in my desktop it shows

04/14/2008:11:31:21 GMT+5:30

I want both machine to print IST what i need to do please help.

Regards,
Harsha

between 0000-00-00 and 9999-99-99    
©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.