 date api once the date api is installed all functions in the api are available to be used anywhere by any module if the date timezone module is installed the system site timezone selector and the user timezone selectors are overwritten to allow the selection of timezone names instead of offsets proper timezone conversion requires knowledge of those timezone names something that is not currently available in drupal core and the change in selectors makes it possible to track it in most cases you should enable the date timezone module any time you use the date api to be able to set the site and user timezone names it is not enabled by default in case another module is setting timezone names in the database the api uses the php 52 date functions to create and manipulate dates and contains an option module that will emulate those functions in earlier versions of php if you are using php 4 or php 50 or 51 native date handling won t work right install the datephp4 module to enable wrapper functions so this code will work in old php versions  