CodeIgniter Forums
Question about date helper - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forum-28.html)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forum-30.html)
+--- Thread: Question about date helper (/thread-72933.html)



Question about date helper - vibbow - 03-02-2019

Hi there,

I just look through CI4 code, and when I look at date_helper->now function, I'm not quiet sure what is the scenario to use this function.

From what I can see, this function will return a timestamp for a given timezome

but AFAIK timestamp is timezone unrelated, no matter which timezone you are, if you query the timestamp at same time (synced action), you get the same timestamp.

If I misunderstand this function, please let me know.