Ticket #3322: DateHelper-patch2.diff
| File DateHelper-patch2.diff, 0.7 kB (added by paulom, 5 months ago) |
|---|
-
lib/helper/DateHelper.php
old new 141 141 $string = '%months% months'; 142 142 $parameters['%months%'] = round($distance_in_minutes / 43200); 143 143 } 144 else if ($distance_in_minutes >= 525960 && $distance_in_minutes <= 1051919)145 {146 $string = 'about 1 year';147 }148 144 else 149 145 { 150 $string = 'over %years% years';151 146 $parameters['%years%'] = floor($distance_in_minutes / 525960); 147 $string = 'over %years% year' . ($parameters['%years%'] > 1 ? 's':''); 152 148 } 153 149 154 150 if (sfConfig::get('sf_i18n'))