timestamps don't match my PC

PostgreSQL is the database server used to store information. Do you have a question or are you having problem with PostgreSQL? If so, post them here.

Moderator: Moderators

timestamps don't match my PC

Postby bball44 » Wed Aug 19, 2009 12:12 am

The timestamps in the tables in my db (looking in PGAdmin) don't match my PC's clock. They are 4 hours later than the time on my PC. My computer is set to Eastern Daylight time. The times seem to be correct in PT3, but, for instance, the date_start field in the holdem_table_session_summary table has a time portion that is 4 hours ahead. I have been having problems setting up reports within PT3 that I woule like, and am instead querying directly within PGAdmin.

Is there a way I can make it so the timestamps in the tables themselves match the PC clock?

I'm not sure if this is the area to ask this question.

Thanks very much.
bball44
 
Posts: 38
Joined: Sat Jul 19, 2008 5:29 pm

Re: timestamps don't match my PC

Postby WhiteRider » Wed Aug 19, 2009 5:11 am

Those date fields are in UTC - they are labelled as "timestamp without time zone"; in fact I think all dates in the database are stored like that as this makes them much more re-usable.
Postgres has date/time functions built in to convert to and from UTC.
http://www.postgresql.org/docs/8.3/static/functions-datetime.html
WhiteRider
Moderator
 
Posts: 54018
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: timestamps don't match my PC

Postby bball44 » Wed Aug 19, 2009 3:35 pm

Thanks, this is a great help. Makes sense.
bball44
 
Posts: 38
Joined: Sat Jul 19, 2008 5:29 pm

Re: timestamps don't match my PC

Postby spannerj » Tue Sep 01, 2009 6:14 pm

Sorry to resurect an old post but I cant find the answer I want anywhere else.

I also have the problem of my session times not matching my PC.

I have only just signed up to PT3 and have never used PostgreSQL so could someone tell me (in simple terms) how I can fix this issue and set my timezone to GMT?

Thanks
spannerj
 
Posts: 3
Joined: Tue Mar 25, 2008 7:12 pm

Re: timestamps don't match my PC

Postby WhiteRider » Wed Sep 02, 2009 5:06 am

What site(s) are you playing at?
The hands are stored as UTC in the database but should be displayed in your local time in PT3.
WhiteRider
Moderator
 
Posts: 54018
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: timestamps don't match my PC

Postby spannerj » Wed Sep 02, 2009 8:50 am

I'm playing on Absolute Poker.

How can I see what is stored in the database?
spannerj
 
Posts: 3
Joined: Tue Mar 25, 2008 7:12 pm

Re: timestamps don't match my PC

Postby WhiteRider » Wed Sep 02, 2009 9:40 am

Cereus (Absolute) write the timestamps of the hands incorrectly in the hand history files.
They write your local time but label it as ET so PT3 converts it.
Cereus are aware of this bug in their software and say they will fix it, but of course I don't know when that will be.
You may want to contact them and add your voice to the request to get it fixed.
WhiteRider
Moderator
 
Posts: 54018
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: timestamps don't match my PC

Postby spannerj » Wed Sep 02, 2009 12:35 pm

Ah I see. How annoying. Not the end of the world but a pain none the less.

I shall bounce them an email.

Thanks for your time.
spannerj
 
Posts: 3
Joined: Tue Mar 25, 2008 7:12 pm

Re: timestamps don't match my PC

Postby WhiteRider » Wed Sep 02, 2009 12:44 pm

No problem - FWIW I have this issue too and have emailed them myself.
WhiteRider
Moderator
 
Posts: 54018
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: timestamps don't match my PC

Postby jabbawok » Fri Sep 11, 2009 8:27 pm

WhiteRider wrote:What site(s) are you playing at?
The hands are stored as UTC in the database but should be displayed in your local time in PT3.

I'm still trialling PT3 and would like some clarification with how it handles the timestamps. I've only been playing at PS and have the client set to AEST (my time zone). So the hand history shows it like this:
Code: Select all
2009/09/12 10:10:52 AEST [2009/09/11 20:10:52 ET]


But PT3 is displaying this:
Code: Select all
2009/09/12 20:10
Which is obviously not my local time. And I get the "date rollover" where in the evening the date is shown as the next day.

So how do I make PT3 show the correct AEST date/times?
jabbawok
 
Posts: 5
Joined: Sun Aug 30, 2009 1:53 pm

Next

Return to PostgreSQL [Read Only]

Who is online

Users browsing this forum: No registered users and 82 guests

cron