pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John R Pierce <pierce@hogranch.com>
To: deepthi@granwill.com
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Time conversion across various parts of world
Date: Thu, 25 Nov 2004 23:12:15 -0800
Message-ID: <41A6D74F.2020002@hogranch.com> (raw)
In-Reply-To: <1101452747.41a6d5cb4bb52@granwill.com>
References: <1101452747.41a6d5cb4bb52@granwill.com>

deepthi@granwill.com wrote:
> Hello,
> 
> For example, our website is running on a server located in Japan and we have
> another website #2 running in US. our database is located on the server in
> Japan. when some one accesses our website #2 which is located in US, the time
> at which the user accessed our website #2 has to be registered in a database
> which is situated in Japan. but at present i am getting the system time of the
> server which is in japan.  How can i convert this time or get the corresponding
> time at US using pgsql time zone feature or if anything else.
> 
> Please note: Our other website#2 can be located in other parts of the world
> also, it need not be US only. I have the country name where our  website#2 is
> located and by using this name i need to get the time in that country.

store GMT in the database always, convert back to local time when you display it.





view thread (3+ messages)  latest in thread

Message-ID: <41A6D74F.2020002@hogranch.com>
Permalink:  ../41A6D74F.2020002@hogranch.com/
Also on:    postgresql.org/message-id/41A6D74F.2020002@hogranch.com

 · 

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-jdbc@postgresql.org
  Cc: pierce@hogranch.com, deepthi@granwill.com
  Subject: Re: Time conversion across various parts of world
  In-Reply-To: <41A6D74F.2020002@hogranch.com>
  References: <1101452747.41a6d5cb4bb52@granwill.com> <41A6D74F.2020002@hogranch.com>

* 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