Changeset 3012
- Timestamp:
- 12/11/06 11:33:16 (2 years ago)
- Files:
-
- trunk/lib/helper/FormHelper.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/helper/FormHelper.php
r2974 r3012 744 744 return select_date_tag($name, $value, $options, isset($options['html']) ? $options['html'] : array()); 745 745 } 746 747 if (_get_option($options, 'withtime', false)) 748 { 749 $pattern = 'g'; 750 } 751 else 752 { 753 $pattern = 'd'; 754 } 746 755 747 756 // parse date … … 753 762 { 754 763 $dateFormat = new sfDateFormat($culture); 755 $value = $dateFormat->format($value, _get_option($options, 'format', 'd'));764 $value = $dateFormat->format($value, _get_option($options, 'format', $pattern)); 756 765 } 757 766