Time() not same? |
Code: $now = Time::now(); $new_now create from $now->timestamp but $new_now not showing the same Time with $now even I add timeZone in the createFromTimestamp() The time not change. Is this a bug? Code: // $now with (int)1642422355 Code: // $new_now with (int) 1642422355
Interesting, I'm getting similar results.
2022-01-17 13:57:53 2022-01-17 19:57:53 PHP Code: <?php
This was fixed in the latest develop branch, and would be included in the next 4.2.0.
https://github.com/codeigniter4/CodeIgniter4/pull/5588 |
Welcome Guest, Not a member yet? Register Sign In |