--
-- timezone__new/2
--
create or replace function timezone__new(
  p_tz character varying,
  p_gmt_offset character varying
) returns int4 as $$

DECLARE
BEGIN
  insert into timezones
    (tz_id, tz, gmt_offset)
  values
    (nextval('timezone_seq'), p_tz, gmt_offset);
  return 0;
END;
$$ language plpgsql;