Changeset 782 for trunk/bin


Ignore:
Timestamp:
Mar 3, 2023 4:39:34 AM (14 months ago)
Author:
anonymous
Message:

Backporting a few things from codebase 2.x

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/module_maker/list_template.cli.php

    r768 r782  
    123123            $listrows[] = "<\x3fphp echo '9999-12-31' == \$list[\$i]['$field'] ? '' : date(\$app->getParam('date_format'), strtotime(\$list[\$i]['$field'])); \x3f>";
    124124        } 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>";
    126126        } 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>";
    128128        } else if (preg_match('/(amount|_rate)/i', $field)) {
    129129            $listrows[] = "<\x3fphp printf('$%01.2f', \$list[\$i]['$field']); \x3f>";
Note: See TracChangeset for help on using the changeset viewer.