Welcome Guest, Not a member yet? Register   Sign In
Deprecate now() helper
#1

I would like to deprecate now() helper.

It seems now() with a timezone returns unexpected or confusing result.
See https://forum.codeigniter.com/showthread.php?tid=82808

CI4 has the Time class. We don't need to use now().
Reply
#2

now() was being used to set the MySQLi datetime and timestamp in the database.

But I'm sure we can work around this, if you want to remove it.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

Do you use the Date helper `now()` in your code?
If so, do you use the timezone parameter?
Reply
#4

Orginally the helper now() was not in the new CI so I created a method to just return the date time.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB