Use $dateFormat INT in models - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Use $dateFormat INT in models (/showthread.php?tid=77919) |
Use $dateFormat INT in models - piponsio - 11-04-2020 Reading the documentation of CodeIgniter4 (Models), i found this. I tried use a timestamps with a type date of int, but this not working because at updated the column "updated_at" it is 0. My model is: PHP Code: <?php namespace App\Models; The eCrisisModel is a abstract class extends of Model class: PHP Code: <?php namespace App\Models; The controller where it is executed is: PHP Code: <?php namespace App\Controllers; And the database after of the update is: Which is my error ? why the system not recording the update timestamp? (The link of this problem in StackOverflow is: https://stackoverflow.com/questions/64624957/use-dateformat-int-in-models-in-codeigniter4?noredirect=1#comment114269994_64624957) |