summaryrefslogtreecommitdiff
path: root/framework/I18N/core/DateTimeFormatInfo.php
diff options
context:
space:
mode:
authorxue <>2007-07-26 01:21:43 +0000
committerxue <>2007-07-26 01:21:43 +0000
commit7ca846467da923a2bd39ef3f554e26e1f589c85e (patch)
tree879f0134d1ae217b92183d7283f8ca8ee7d514b1 /framework/I18N/core/DateTimeFormatInfo.php
parent21dde48b3caf7ee8aff1343c22f6ef5c18ee167b (diff)
Fixed #678.
Diffstat (limited to 'framework/I18N/core/DateTimeFormatInfo.php')
-rw-r--r--framework/I18N/core/DateTimeFormatInfo.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/I18N/core/DateTimeFormatInfo.php b/framework/I18N/core/DateTimeFormatInfo.php
index 685a95c1..04ed0e73 100644
--- a/framework/I18N/core/DateTimeFormatInfo.php
+++ b/framework/I18N/core/DateTimeFormatInfo.php
@@ -173,7 +173,7 @@ class DateTimeFormatInfo
return $culture->getDateTimeFormat();
else if(is_string($culture))
{
- $cultureInfo = new CultureInfo($culture);
+ $cultureInfo = CultureInfo::getInstance($culture);
return $cultureInfo->getDateTimeFormat();
}
else