postgresql7.1 select (extract(epoch from current_timestamp + timezone__get_offset (timezone__get_id(:system_timezone), current_timestamp) ) - extract(epoch from current_timestamp) ) / 60/60;