Merge remote branch 'jwage/master'

* jwage/master:
  Revert back to using gmmktime and use day 15 instead of 1 to avoid edge case
  Use mktime instead of gmmaketime. On the 1st of every month the following options are generated:
This commit is contained in:
Fabien Potencier 2011-06-05 08:47:49 +02:00
commit dd5f088abb

View File

@ -46,7 +46,7 @@ class MonthChoiceList extends PaddedChoiceList
foreach ($this->choices as $choice => $value) {
// It's important to specify the first day of the month here!
$this->choices[$choice] = $this->formatter->format(gmmktime(0, 0, 0, $value, 1));
$this->choices[$choice] = $this->formatter->format(gmmktime(0, 0, 0, $value, 15));
}
// I'd like to clone the formatter above, but then we get a