[Solar-svn] Revision 2625

pmjones at solarphp.com pmjones at solarphp.com
Wed Jul 25 10:41:44 CDT 2007


Branch: Solar_Filter: [BRK] Start using a "space" separator in validateIsoTimestamp(), since every single database seems to do it that way (and is still approved by ISO 8601).


Modified: branches/orm/Solar/Filter.php
===================================================================
--- branches/orm/Solar/Filter.php	2007-07-25 15:36:33 UTC (rev 2624)
+++ branches/orm/Solar/Filter.php	2007-07-25 15:41:44 UTC (rev 2625)
@@ -334,7 +334,7 @@
     /**
      * 
      * Forces the value to an ISO-8601 formatted timestamp
-     * ("yyyy-mm-ddThh:ii:ss").
+     * ("yyyy-mm-dd hh:ii:ss").
      * 
      * @param string $value The value to be sanitized.  If an integer, it
      * is used as a Unix timestamp; otherwise, converted to a Unix
@@ -349,7 +349,7 @@
             return null;
         }
         
-        $format = 'Y-m-d\\TH:i:s';
+        $format = 'Y-m-d H:i:s';
         if (is_int($value)) {
             return date($format, $value);
         } else {




More information about the Solar-svn mailing list