CodeIgniter Forums
The correct way to work with timestamp & UTC - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Best Practices (https://forum.codeigniter.com/forumdisplay.php?fid=12)
+--- Thread: The correct way to work with timestamp & UTC (/showthread.php?tid=82562)



The correct way to work with timestamp & UTC - rodrigoguariento - 07-24-2022

What is the recommendation to work with date and time in CodeIgniter 4 considering the following scenario: how do I store the date and time in UTC in the database using CodeIgniter 4, and then how do I display the date and time in the user's time zone using CodeIgniter 4?