summaryrefslogtreecommitdiff
path: root/framework/I18N
diff options
context:
space:
mode:
authorwei <>2007-05-09 02:19:04 +0000
committerwei <>2007-05-09 02:19:04 +0000
commit733cc375da74f9bf0fd3d71989bb20d503dbbb7b (patch)
tree921472f98218b5b5cae7e8e773998c28cd1e08dd /framework/I18N
parentfff8748276ce319e7fe828e2c1bc93e978d63910 (diff)
Fixed #602.
Diffstat (limited to 'framework/I18N')
-rw-r--r--framework/I18N/core/DateTimeFormatInfo.php6
1 files changed, 5 insertions, 1 deletions
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'];
}
/**