From fc7c3eb9245e2dcd7a518ca2ecde3e736967f559 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Tue, 18 May 2010 01:33:58 +0200 Subject: [PATCH] Pass locale when creating date parser. --- kronolith/lib/Kronolith.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kronolith/lib/Kronolith.php b/kronolith/lib/Kronolith.php index 054bba25a..e5800f387 100644 --- a/kronolith/lib/Kronolith.php +++ b/kronolith/lib/Kronolith.php @@ -897,7 +897,7 @@ class Kronolith $title = trim($title); $description = trim($description); - $dateParser = Horde_Date_Parser::factory(); + $dateParser = Horde_Date_Parser::factory(array('locale' => $GLOBALS['language'])); $r = $dateParser->parse($title, array('return' => 'result')); if (!($d = $r->guess())) { throw new Horde_Exception(sprintf(_("Cannot parse event description \"%s\""), Horde_String::truncate($text))); -- 2.11.0