[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: error in svnClientAdapter command-line xml date parsing.

From: Deadman, Hal <Hal.Deadman_at_Tallan.com>
Date: 2005-01-05 23:46:04 CET

The old code looks dangerous because SimpleDateFormat is not thread
safe, probably shouldn't be static.

> ===================================================================
> --- Helper.java (revision 1184)
> +++ Helper.java (working copy)
> @@ -35,6 +35,7 @@
> new SimpleDateFormat("yyyy-MM-dd hh:mm:ss Z");
>
> // 2003-10-13T12:54:42.957948Z
> + // This formatter uses local timezone, not GMT.
> private static DateFormat xmlFormat =
> new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
>
Received on Thu Jan 6 09:46:04 2005

This is an archived mail posted to the Subclipse Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.