Databases
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives Mailing Lists Databases

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old July 25th, 2008, 07:31 AM
Anoop G
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
postgres time zone settings(time difference in Server and client)

Hai all,

I have database running on server. I am using python to run my
application.postgres client is running on the clients .All clients are
connected to a single database running on server. Each time application
starts ,the login time is taken from server using the query
"""select CAST ( timeofday() AS timestamp"""

But the problem the time which I got is different from that of server
machine . I Think the postgres client is adding some values to the server
time. How can I solve this .Is there any configuration setting for client to
solve this?.In which location client's configuration file is stored( I am
using Linux(Debian )?.

here the result I got:

The correct time in server: 2008-07-25 14:16:54

But What i got from client (with database cursor of sever database):
2008-07-25 19:46:33.46 (difference of more than 5 Hr ) Where this
difference come?

any one know the answer pls help me.

Thanks in advance

Anoop

Reply With Quote
  #2  
Old July 25th, 2008, 07:31 AM
Anoop G
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
postgres time zone settings(time difference in Server and client)

Hai all,

my postgres version is PostgreSQL 8.1.8 didn't support clock_timestamp()

regards:

Anoop

Reply With Quote
Reply

Viewing: Web Development Archives Mailing Lists Databases > postgres time zone settings(time difference in Server and client)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek