Timezone handling suggestions with CI4 |
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 |
Messages In This Thread |
Timezone handling suggestions with CI4 - by never2ice - 04-29-2020, 03:12 PM
RE: Timezone handling suggestions with CI4 - by korgoth - 04-30-2020, 01:14 AM
RE: Timezone handling suggestions with CI4 - by FlavioSuar - 04-30-2020, 04:54 AM
RE: Timezone handling suggestions with CI4 - by Araveth - 06-08-2020, 09:17 AM
|