projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66f4022
)
strip locale out of the parse() arguments so that the static caller works with locales
author
Chuck Hagenbuch
<chuck@horde.org>
Fri, 29 May 2009 01:53:21 +0000
(21:53 -0400)
committer
Chuck Hagenbuch
<chuck@horde.org>
Fri, 29 May 2009 01:53:25 +0000
(21:53 -0400)
framework/Date_Parser/lib/Horde/Date/Parser.php
patch
|
blob
|
history
diff --git
a/framework/Date_Parser/lib/Horde/Date/Parser.php
b/framework/Date_Parser/lib/Horde/Date/Parser.php
index
32fbd62
..
58de231
100644
(file)
--- a/
framework/Date_Parser/lib/Horde/Date/Parser.php
+++ b/
framework/Date_Parser/lib/Horde/Date/Parser.php
@@
-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())