From 733cc375da74f9bf0fd3d71989bb20d503dbbb7b Mon Sep 17 00:00:00 2001 From: wei <> Date: Wed, 9 May 2007 02:19:04 +0000 Subject: Fixed #602. --- framework/I18N/core/DateTimeFormatInfo.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/framework/I18N/core/DateTimeFormatInfo.php b/framework/I18N/core/DateTimeFormatInfo.php index fb6793c5..685a95c1 100644 --- a/framework/I18N/core/DateTimeFormatInfo.php +++ b/framework/I18N/core/DateTimeFormatInfo.php @@ -287,11 +287,15 @@ class DateTimeFormatInfo * culture-specific abbreviated names of the months. The array * for InvariantInfo contains "Jan", "Feb", "Mar", "Apr", "May", * "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", and "Dec". + * Returns wide names if abbreviated names doesn't exist. * @return array abbreviated month names. */ function getAbbreviatedMonthNames() { - return $this->data['monthNames']['format']['abbreviated']; + if (isset($this->data['monthNames']['format']['abbreviated'])) + return $this->data['monthNames']['format']['abbreviated']; + else + return $this->data['monthNames']['format']['wide']; } /** -- cgit v1.2.3