Skip to content

Commit

Permalink
Fixed validation of date picker (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
dejwCake authored and palypster committed Oct 14, 2017
1 parent d312f25 commit 4d85298
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Generate/Traits/Columns.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,17 +105,17 @@ protected function getVisibleColumns($tableName, $modelVariableName) {
case 'datetime':
$serverStoreRules->push('\'date\'');
$serverUpdateRules->push('\'date\'');
$frontendRules->push('date_format:YYYY-MM-DD kk:mm:ss');
$frontendRules->push('date_format:YYYY-MM-DD HH:mm:ss');
break;
case 'date':
$serverStoreRules->push('\'date\'');
$serverUpdateRules->push('\'date\'');
$frontendRules->push('date_format:YYYY-MM-DD kk:mm:ss');
$frontendRules->push('date_format:YYYY-MM-DD HH:mm:ss');
break;
case 'time':
$serverStoreRules->push('\'date_format:H:i:s\'');
$serverUpdateRules->push('\'date_format:H:i:s\'');
$frontendRules->push('date_format:kk:mm:ss');
$frontendRules->push('date_format:HH:mm:ss');
break;
case 'integer':
$serverStoreRules->push('\'integer\'');
Expand Down

0 comments on commit 4d85298

Please sign in to comment.