- Timestamp:
- Mar 3, 2023 4:39:34 AM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/module_maker/list_template.cli.php
r768 r782 123 123 $listrows[] = "<\x3fphp echo '9999-12-31' == \$list[\$i]['$field'] ? '' : date(\$app->getParam('date_format'), strtotime(\$list[\$i]['$field'])); \x3f>"; 124 124 } else if (preg_match('/datetime/i', $type)) { 125 $listrows[] = "<\x3fphp echo Validator::validateStrDate(\$list[\$i]['$field'])? date(\$app->getParam('date_format'), strtotime(\$list[\$i]['$field'])) : ''; \x3f>";125 $listrows[] = "<\x3fphp echo strtotime(\$list[\$i]['modified_datetime']) > 0 ? date(\$app->getParam('date_format'), strtotime(\$list[\$i]['$field'])) : ''; \x3f>"; 126 126 } else if (preg_match('/date/i', $type)) { 127 $listrows[] = "<\x3fphp echo Validator::validateStrDate(\$list[\$i]['$field'])? date(\$app->getParam('date_format'), strtotime(\$list[\$i]['$field'])) : ''; \x3f>";127 $listrows[] = "<\x3fphp echo strtotime(\$list[\$i]['modified_datetime']) > 0 ? date(\$app->getParam('date_format'), strtotime(\$list[\$i]['$field'])) : ''; \x3f>"; 128 128 } else if (preg_match('/(amount|_rate)/i', $field)) { 129 129 $listrows[] = "<\x3fphp printf('$%01.2f', \$list[\$i]['$field']); \x3f>";
Note: See TracChangeset
for help on using the changeset viewer.