Dating Helper Questions |
hello,
I just look at the CI4 code and when I look at the function date_helper->now I'm not quite sure in what situations this function would be used. from what i saw This function returns a timestamp for a given time zone. But the AFAIK timestamp is an unrelated time zone. No matter what time zone you are in If you search for the timestamp at the same time (Synced action) You will get the same timestamp. ป๊อกเด้งฝากถอนauto If I misunderstand this function please let us know
Good question.
It seems the timezone affects the now() result. PHP Code: helper('date'); Results: Code: UTC I recommend you don't use now(). CI4 has the Time class. https://codeigniter4.github.io/CodeIgnit.../time.html PHP Code: $now = Time::now(); Results: Code: 1661489866: 2022-08-26T04:57:46+00:00
The in-progress user guide is updated. How about this?
https://codeigniter4.github.io/CodeIgnit...r.html#now |
Welcome Guest, Not a member yet? Register Sign In |