You're correct. When I run this from psql it returns the correct result. When I 
run it from DBVisualizer, which I normally use, it adjust the result to my 
local time zone. Thanks for looking into it. Sorry about bugging you with that.

Thanks,

Mark


On 9/2/09 10:24 PM, "Tom Lane" <t...@sss.pgh.pa.us> wrote:

Mark Douglas <m...@steelhousemedia.com> writes:
> I have my timezone set to GMT so there really shouldn't be any time zone 
> adjustments.

Okay ...

postgres=# set timezone = GMT;
SET
postgres=# SELECT DATE_TRUNC('MONTH', CURRENT_DATE);
       date_trunc
------------------------
 2009-09-01 00:00:00+00
(1 row)

I suspect there's something you're not telling us, like you're
using a client-side library that is doing timezone adjustments
behind your back.

                        regards, tom lane

Reply via email to