Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 33419 invoked from network); 27 Aug 2006 03:30:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Aug 2006 03:30:58 -0000 Received: (qmail 37100 invoked by uid 500); 27 Aug 2006 03:30:52 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 37076 invoked by uid 500); 27 Aug 2006 03:30:52 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 37065 invoked by uid 99); 27 Aug 2006 03:30:51 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Aug 2006 20:30:51 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jaybuffington@gmail.com designates 66.249.82.239 as permitted sender) Received: from [66.249.82.239] (HELO wx-out-0506.google.com) (66.249.82.239) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Aug 2006 20:30:50 -0700 Received: by wx-out-0506.google.com with SMTP id t12so1295769wxc for ; Sat, 26 Aug 2006 20:30:30 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=I1oa1OIpMo16rP8FLv87v+XuXEl0ichzX1WOCSQKAkFITMTMIveuVs3pTNjSuGYF/6Q5/tJqF12DXy23CnPwwXUF9XlHvADtAE66kqTVVuognaG9j1TUN6uXjixPpIYekIvPE4RFZEE8bwngwE8Yg26e6Pho6UmVNz1nqX+8zqs= Received: by 10.90.49.19 with SMTP id w19mr835820agw; Sat, 26 Aug 2006 20:30:30 -0700 (PDT) Received: by 10.90.86.4 with HTTP; Sat, 26 Aug 2006 20:30:30 -0700 (PDT) Message-ID: Date: Sat, 26 Aug 2006 20:30:30 -0700 From: "Jay Buffington" To: modperl@perl.apache.org Subject: Re: different default oracle date formats under mod_perl and scripts In-Reply-To: <44EFB348.5040905@p6m7g8.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <44EFB348.5040905@p6m7g8.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thank you all very much. As mentioned, this isn't a mod_perl issue. That NLS_ variable sounded familiar. I looked in my httpd.conf and found this: PerlSetEnv NLS_LANG american_america.we8iso8859p1 Which controls (among many other things) the default date format. I've moved that line out of the httpd.conf and into my DB connect module and now I get consistant results from scripts and mod_perl apps. Thanks! Jay On 8/25/06, Philip M. Gollucci wrote: > It is a config option, but I've forgotten which > you can set this way too -- so you don't break EVERYONE else using the DB > > $dbh->do("ALTER SESSION SET NLS_DATE_FORMAT = 'yyyy-mm-dd hh24:mi:ss'");