I am inserting into the table with field type "timestamp with time zone" string "1858-11-17 01:09:05+0000" and getting back strage formated value "05:11:29+04:02:24".
Here is session
test=> create table ddtbl (val timestamp with time zone);
CREATE TABLE
test=> insert into ddtbl (val) values ('1858-11-17 01:09:05+0000');
INSERT 0 1
test=> select * from ddtbl;
val
------------------------------
1858-11-17 05:11:29+04:02:24
Why is this happening and what is "+04:02:24" here ?
UPD: PostgreSQL version
% psql --version
psql (PostgreSQL) 9.2.4
UPD2: Local timezone
% date +%Z
YEKT
% date +%z
+0600