Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Not an Issue
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Zend_Date
-
Labels:None
Description
I just noticed a strange Zend_Date::isDate behavior that didn't occur before.
Have a look at the following code:
if (Zend_Date::isDate('2007-11-14 21:06:36 GMT')) { echo 'true'; } else { echo 'false'; }
It prints false.
What makes everything strange, is that the following piece of code works well.
$x = new Zend_Date('2007-11-14 21:06:36 GMT'); echo $x; // Nov 14, 2007 9:06:36 PM
As I told before, this is a new issue.
The last time I tested Zend_Date /trunk (02/Jan/08) it worked without any problem.
This is not an issue...
API for isDate() says:
You did not define a format in your example so the standard format from your locale is used.
This means the used format differs on the browser or environment settings.
And the input you gave follows no known default format in any locale so the returned "false" is correct.
As wether the class nor the function has been changed in past (since 1.0.2) it must be related to different browser or server settings.