Could someone explain me this sign inversion, i'm lost here...
SELECT EXTRACT(EPOCH FROM '01-01-1970 00:00:00 UTC+01'::timestamp with time zone)
=> 3600
SELECT EXTRACT(EPOCH FROM '1970-01-01 00:00:00+01'::timestamp with time zone)
=> -3600
Postgres 8.3.14
This
is an ISO 8601 timestamp with a +1 hour offset and +1 means east of Greenwich. The offsets in these
will be interpreted as POSIX style timezones where +1 means west of Greenwich:
and those even come with a warning:
Note the west versus east difference.