strip locale out of the parse() arguments so that the static caller works with locales
authorChuck Hagenbuch <chuck@horde.org>
Fri, 29 May 2009 01:53:21 +0000 (21:53 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Fri, 29 May 2009 01:53:25 +0000 (21:53 -0400)
framework/Date_Parser/lib/Horde/Date/Parser.php

index 32fbd62..58de231 100644 (file)
@@ -6,7 +6,10 @@ class Horde_Date_Parser
 {
     public static function parse($text, $args = array())
     {
-        return self::factory($args)->parse($text, $args);
+        $factoryArgs = $args;
+        unset($args['locale']);
+
+        return self::factory($factoryArgs)->parse($text, $args);
     }
 
     public static function factory($args = array())