--- theme/theme.inc 2009-06-09 08:10:58.000000000 +0900 +++ theme/theme-new.inc 2009-11-11 10:32:35.000000000 +0900 @@ -383,6 +383,10 @@ function theme_date_time_ago($start_date $start = date_format($start_date, DATE_FORMAT_DATETIME); $end = date_format($end_date, DATE_FORMAT_DATETIME); + if (substr($end, -8) == "00:00:00") { + // it is an all day event so make the end date one day later to satisfy the 'Ongoing' condition + $end = date_convert(date_convert($end, DATE_DATETIME, DATE_UNIX) + 86400, DATE_UNIX, DATE_DATETIME); + } // 1) The date is entirely in the future if ($now < $start) { return t('!time from now', array('!time' => date_format_interval($start_date, $interval)));