Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 65697 invoked from network); 20 Mar 2007 11:40:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Mar 2007 11:40:52 -0000 Received: (qmail 27180 invoked by uid 500); 20 Mar 2007 11:40:58 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 27155 invoked by uid 500); 20 Mar 2007 11:40:58 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 27144 invoked by uid 99); 20 Mar 2007 11:40:58 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Mar 2007 04:40:58 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of larry.meadors@gmail.com designates 64.233.182.190 as permitted sender) Received: from [64.233.182.190] (HELO nf-out-0910.google.com) (64.233.182.190) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Mar 2007 04:40:49 -0700 Received: by nf-out-0910.google.com with SMTP id l24so291543nfc for ; Tue, 20 Mar 2007 04:40:28 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=R35ngMr4CnycUtNbpNZ1tnF+6Px77PAtMg/awhia2htXdiuhlMikB875x7IQXAttuFpTTIHi9y94XvTWaWV31tNO96JtTDxRQDZ5vEyIyA0SUqkWdvPZsOVeXFEdm+1a2zvOz99LLk6DM0EE2b+JY2el3yoW/et+i0sZCJiI2C0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=Hu+h/ms1/AZP9NjqDuO0H0sdv1FdPkbESr1SPRFPCgx3AeE+Qt3zRt1Ktry+Zbgb+GyeeNNCGqmmhCjC4e48gETN/IDGhyQGGnKzvtSHHTYAW1JygfMfZxxmefyEYijit1gqha44dJJJcMeMTjZmA6GoMnvYPqjSD+08KRoSKrc= Received: by 10.82.134.12 with SMTP id h12mr12466908bud.1174390828374; Tue, 20 Mar 2007 04:40:28 -0700 (PDT) Received: by 10.82.98.10 with HTTP; Tue, 20 Mar 2007 04:40:28 -0700 (PDT) Message-ID: Date: Tue, 20 Mar 2007 05:40:28 -0600 From: "Larry Meadors" Reply-To: lmeadors@apache.org Sender: larry.meadors@gmail.com To: user-java@ibatis.apache.org Subject: Re: Locale problems? In-Reply-To: <1174380934.45ffa186775ff@www.kattare.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1174380934.45ffa186775ff@www.kattare.com> X-Google-Sender-Auth: a0f14037db829d79 X-Virus-Checked: Checked by ClamAV on apache.org Are you using strings for dates or dates for dates? If you are using strings (a really bad idea, btw) you can set the locale on the command line when you start Java, or in code: http://www.exampledepot.com/egs/java.util/SetDefLocale.html Larry On 3/20/07, andrew.kitchen@kattare.com wrote: > > All, > > I have an application that uses SqlMaps. I have it working fine on my > local machine. I also have it working fine when I use a remote database > hosted by my service provider. I have trouble when the exact same > application code is then used on the server hosted by my service > provider. This throws an error when trying to read an object from the > database. It fails to parse the date. All dates are in the format > yyyy-MM-dd. My local machine is in the UK and the service provider's > server in the USA. I am wondering if there is some kind of locale issue > here that iBatis needs to take into account? Does anyone have any advice > they can give me as it is really frustratiing as I know the code works > on my local machine........ > > Best regards, > Andrew > > > > >