Details
Description
I found two problems in Zend_Date document.
http://framework.zend.com/manual/en/zend.date.additional.html#zend.date.additional.timezones.example-2
1. typo
'date_defaut_timezone_set' should be 'date_default_timezone_set'.
2. ISO-8601 uncompliant data
'10.03.2007 00:00:00' should be '2007-10-03 00:00:00'.
Here is a patch for Zend_Date-Additional.xml
Index: trunk/documentation/manual/en/module_specs/Zend_Date-Additional.xml
===================================================================
— trunk/documentation/manual/en/module_specs/Zend_Date-Additional.xml (revision 9385)
+++ trunk/documentation/manual/en/module_specs/Zend_Date-Additional.xml (working copy)
@@ -295,10 +295,10 @@
// Set a default timezone... this has to be done within the bootstrap file or php.ini
// We do this here just for having a complete example
-date_defaut_timezone_set('Europe/Vienna');
+date_default_timezone_set('Europe/Vienna');
// create a date object
-$date = new Zend_Date('10.03.2007 00:00:00', Zend_Date::ISO_8601, 'de');
+$date = new Zend_Date('2007-10-03 00:00:00', Zend_Date::ISO_8601, 'de');
// view our date object
print $date->getIso();
The second is not a fault, it's expected and works.
The real ISO standard defines also this sort of input as correct.