From: Jan Schneider Date: Mon, 17 May 2010 23:33:58 +0000 (+0200) Subject: Pass locale when creating date parser. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=fc7c3eb9245e2dcd7a518ca2ecde3e736967f559;p=horde.git Pass locale when creating date parser. --- 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)));