Author: gimler
Date: 2010-02-05 14:28:32 +0100 (Fri, 05 Feb 2010)
New Revision: 27593
Modified:
plugins/diemPlugin/trunk/dmCorePlugin/lib/doctrine/loremizer/dmRecordLoremizer.php
Log:
[Diem] fix loremizer for timestamp and time columns
Modified:
plugins/diemPlugin/trunk/dmCorePlugin/lib/doctrine/loremizer/dmRecordLoremizer.php
===================================================================
---
plugins/diemPlugin/trunk/dmCorePlugin/lib/doctrine/loremizer/dmRecordLoremizer.php
2010-02-05 13:24:21 UTC (rev 27592)
+++
plugins/diemPlugin/trunk/dmCorePlugin/lib/doctrine/loremizer/dmRecordLoremizer.php
2010-02-05 13:28:32 UTC (rev 27593)
@@ -150,10 +150,8 @@
break;
case 'time':
case 'timestamp':
- $val = mt_rand(strtotime('-10 year') , time());
- break;
case 'date':
- $val = date("Y-m-d", mt_rand(strtotime('-10 year') , time()));
+ $val = date("Y-m-d H:i:s", mt_rand(strtotime('-10 year') , time()));
break;
case 'enum':
$val = $column['values'][array_rand($column['values'])];
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.