summaryrefslogtreecommitdiff
path: root/framework/I18N/TDateFormat.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/I18N/TDateFormat.php')
-rw-r--r--framework/I18N/TDateFormat.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/I18N/TDateFormat.php b/framework/I18N/TDateFormat.php
index 1226fd6f..985f5115 100644
--- a/framework/I18N/TDateFormat.php
+++ b/framework/I18N/TDateFormat.php
@@ -174,12 +174,12 @@ class TDateFormat extends TI18NControl
//initialized the default class wide formatter
if(is_null(self::$formatter))
- self::$formatter = new DateFormat($app->Culture);
+ self::$formatter = new DateFormat($app->getCulture());
$culture = $this->getCulture();
//return the specific cultural formatted date time
- if(strlen($culture) && $app->Culture !== $culture)
+ if(strlen($culture) && $app->getCulture() !== $culture)
{
$formatter = new DateFormat($culture);
return $formatter->format($this->getValue(),