[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: Jennifer Bevan <jen_at_alouysius.net>
Date: 2005-01-06 17:50:01 CET

Yep; that's much nicer. I just ran it with my test and it works great.
Thanks!
-Jen

Mark Phippard wrote:

>It seems like we could just add this then for a patch. It initializes the
>TimeZone in the xmlFormat formatter when it is constructed.
>
>
>Index:
>C:/workspaces/subclipse/svnClientAdapter/src/main/org/tigris/subversion/svnclientadapter/commandline/Helper.java
>===================================================================
>---
>C:/workspaces/subclipse/svnClientAdapter/src/main/org/tigris/subversion/svnclientadapter/commandline/Helper.java
>(revision 1186)
>+++
>C:/workspaces/subclipse/svnClientAdapter/src/main/org/tigris/subversion/svnclientadapter/commandline/Helper.java
>(working copy)
>@@ -37,6 +37,10 @@
> // 2003-10-13T12:54:42.957948Z
> private static DateFormat xmlFormat =
> new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
>+ // Initialize timezone to GMT for xmlFormat
>+ static {
>+ xmlFormat.setTimeZone(java.util.TimeZone.getTimeZone("GMT"));
>+ }
>
> /**
> * A non-instantiable class
>
>_____________________________________________________________________________
>Scanned for SoftLanding Systems, Inc. by IBM Email Security Management Services powered by MessageLabs.
>_____________________________________________________________________________
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@subclipse.tigris.org
>For additional commands, e-mail: dev-help@subclipse.tigris.org
>
>
>
>
Received on Fri Jan 7 03:50:01 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.