[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: Mark Phippard <MarkP_at_softlanding.com>
Date: 2005-01-06 17:32:17 CET

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.
_____________________________________________________________________________
Received on Fri Jan 7 03:32:17 2005

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