Welcome Guest, Not a member yet? Register   Sign In
How to insert NOW() in DATETIME field
#5

(This post was last modified: 03-06-2024, 12:50 AM by joho.)

As has been pointed out in other posts, it should, however, be noted that this is not necessarily the same as the NOW() function in MySQL since that uses the time on the DB-server, and not on the server running PHP.

In some environments, this won't matter, but for others it may.

Perhaps this answer should be updated for CI4 and point in this direction:

Code:
new RawSql('NOW()');

-joho
Reply


Messages In This Thread
How to insert NOW() in DATETIME field - by keop - 09-29-2020, 12:17 AM
RE: How to insert NOW() in DATETIME field - by joho - 03-06-2024, 12:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB