pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Elphick <olly@lfix.co.uk>
To: Jeff Self <jself@nngov.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Set Datestyle doesn't appear to be working
Date: 06 Nov 2002 21:06:09 +0000
Message-ID: <1036616770.14768.2069.camel@linda> (raw)
In-Reply-To: <1036610724.8388.3.camel@jselfpc>
References: <1036610724.8388.3.camel@jselfpc>

On Wed, 2002-11-06 at 19:25, Jeff Self wrote:
> I'm running PostgreSQL 7.2.1 on a Debian Linux server. I have added the
> line: PGDATESTYLE=ISO,US to postmaster.conf and restarted PostgreSQL but
> any fields with the Date type still show up as '2002-11-06'. I want them
> to show up as '11-06-2002'. 

ISO format means "yyyy-mm-dd"; you are getting exactly what you asked
for.  The ",US" part of your spec is controlling how dates are
interpreted on input, so it is not useless, but to get what you want you
must specify "POSTGRES,US".

-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight, UK                            
http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
                 ========================================
     "Let all that you do be done in love."   
                                      1 Corinthians 16:14 




view thread (4+ messages)  latest in thread

Message-ID: <1036616770.14768.2069.camel@linda>
Permalink:  ../1036616770.14768.2069.camel@linda/
Also on:    postgresql.org/message-id/1036616770.14768.2069.camel@linda

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: olly@lfix.co.uk, jself@nngov.com
  Subject: Re: Set Datestyle doesn't appear to be working
  In-Reply-To: <1036616770.14768.2069.camel@linda>
  References: <1036610724.8388.3.camel@jselfpc> <1036616770.14768.2069.camel@linda>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox