06-08-2020, 09:17 AM
If you call date_default_timezone_set() in your BaseController it will override the CI's $appTimezone value. The model will use the timezone that you specified and will save recoreds in DB with your timezone.
If you store dates as timestamp you can easly format them with this CI method:
https://codeigniter4.github.io/userguide...mtimestamp
If you store dates as timestamp you can easly format them with this CI method:
https://codeigniter4.github.io/userguide...mtimestamp