pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Treat <rtreat@webmd.net>
To: Ligia Pimentel <pimentel_ligia@hotmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: how do I change regional setting for dates?
Date: 25 Jul 2002 10:26:49 -0400
Message-ID: <1027607209.8303.37.camel@camel> (raw)
In-Reply-To: <ahn42f$163u$1@news.hub.org>
References: <ahn42f$163u$1@news.hub.org>

You can do "show all" inside psql, which will show you all of your
current run time settings, including a line that should read "Time Zone
is unset" or whatever it is set to. 

This isn't abundantly clear in the docs, so I'll add some notation
there, but if you check out

http://www.postgresql.org/idocs/index.php?sql-set.html
and
http://www.postgresql.org/idocs/index.php?timezones.html

it will explain how to update your internal timezone as needed. 

Robert Treat

On Wed, 2002-07-24 at 15:38, Ligia Pimentel wrote:
> I live in Guatemala, and our timezone is GMT -6, but my server (postgres 7.1
> on a linux redhat 6.2) is storing the dates in the format
> 
> 2002-07-24 00:00:00-04 ( I this understand represents GMT -4).
> 
> My linux servers gives me the the date and time correctly, so I know is not
> a matter of the date of the server, and I checked and its GMT-6 (which is
> right) .
> 
> How do I change the regional setting in postgres?
> 
> 
> Thanks,
> 
> Ligia
> 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster





view thread (2+ messages)

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

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: rtreat@webmd.net, pimentel_ligia@hotmail.com
  Subject: Re: how do I change regional setting for dates?
  In-Reply-To: <1027607209.8303.37.camel@camel>

* 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