In creating your own drupal announcement module using IBM's tutorial (part 6) there is a missing function that the module uses but never defines. The function _announcement_unixtime2drupaldate is first used in the hook form but it is never defined in the announcement_insert area or supporting functions area (listing 15 of the tutorial). They have been informed of this but until they update the tutorial, you will need to add the function:
function _announcement_unixtime2drupaldate($unixtime) {
$drupal_date = array();
$drupal_date["year"] = date("Y", $unixtime);
$drupal_date["month"] = date("m", $unixtime);
$drupal_date["day"] = date("d", $unixtime);
return $drupal_date;
} inside the module. Best place is to add the function near the other support functions, such as _announcement_drupaldate2unixtime.

