postgresql/src/timezone
Bruce Momjian 927d61eeff Run pgindent on 9.2 source tree in preparation for first 9.3
commit-fest.
2012-06-10 15:20:04 -04:00
..
data Update time zone data files to tzdata release 2012c. 2012-05-31 00:47:57 -04:00
tznames Lots of doc corrections. 2012-04-23 22:43:09 -04:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
Makefile Improved parallel make support 2010-11-12 22:15:16 +02:00
README Update docs to point to the timezone library's new home at IANA. 2011-10-27 23:09:05 -04:00
ialloc.c Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
localtime.c Fix edge-case behavior of pg_next_dst_boundary(). 2012-04-25 17:26:10 -04:00
pgtz.c Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
pgtz.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
private.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
scheck.c Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
strftime.c Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
tzfile.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
zic.c Fix comparisons of pointers with zero to compare with NULL instead. 2010-10-29 15:51:52 -04:00

README

src/timezone/README

Timezone
========

This is a PostgreSQL adapted version of the timezone library from
http://www.iana.org/time-zones

The source code can be found at:

	ftp://ftp.iana.org/tz/releases/tzcode*.tar.gz

The code is currently synced with release 2010c.  There are many cosmetic
(and not so cosmetic) differences from the original tzcode library, but
diffs in the upstream version should usually be propagated to our version.

The data files under data/ are an exact copy of the latest data set from:

	ftp://ftp.iana.org/tz/releases/tzdata*.tar.gz

Since time zone rules change frequently in some parts of the world,
we should endeavor to update the data files before each PostgreSQL
release.

At each update, we should check if time zone offsets have changed.
Just search for the current or previous year and see what has changed.
Sometimes a country changes its time zone offsets, for example Georgia
in 2004.  Just grepping in the zic database files for 2004 is enough to
spot such a change.  Then the files under tznames/ should be updated.

When there has been a new release of Windows (probably including Service
Packs), the list of matching timezones need to be updated. Run the
script in src/tools/win32tzlist.pl on a Windows machine running this new
release and apply any new timezones that it detects. Never remove any
mappings in case they are removed in Windows, since we still need to
match properly on the old version.