× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
lcso-lgoss reported 2015-06-16T15:16:44Z  · tariqrahiman last modified 2015-06-25T17:30:26Z

PostgreSQL current_time returns wrong value


customer request
Priority Minor
Complexity Unknown
Component Q Analyzer - Grid Results
Version 15.0

Just for information, I have a PostgreSQL server and I'm connecting from a client (both Linux/Ubuntu).

Opening a Query Analyzer window for a PostgreSQL connection, I run the following:

select current_time;

The result somehow returns an hour less than what it should be. I tested on the command line and on two other GUI tools and they both report the correct time, so I'm guessing the results are formatted before displayed, both "Text" and "Grid" report the wrong result. I expected the text result to return unmodified data, so I don't know how the text even returns the incorrect result.

 timetz     
 ----------
 9:46:02 AM

But on the server the following is returned

select current_time;
       timetz       
--------------------
 10:46:20.879262-04
(1 row)

This may be related to the Timezone as EST is -05 except during daylight savings it is -04. I checked for options but found nothing for Timezone, so I tried changing the format of the displayed time and it didn't make a difference. I should note though that running a similar command returned the correct results, it seems to only be when a time is run without a date maybe? Running the below works correctly:

select current_timestamp;

Results:

 now                   
 ---------------------
 6/16/2015 10:46:47 AM

Issue #13371

Closed
Won't Fix
Resolved 2015-06-18T18:21:05Z
 
 
Completion
No due date
No fixed build
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017