--
-- timezone__get_id/1
--
create or replace function timezone__get_id(
  p_tz character varying
) returns int4 as $$

DECLARE
  v_tz_id integer;
BEGIN

  return tz_id
  from   timezones
  where  tz = p_tz;

END;
$$ language plpgsql;