I made a table like this:
CREATE TABLE options(
id MEDIUM INT NOT NULL AUTO_INCREMENT,
email VARCHAR(254) NOT NULL,
created_at DATETIME DEFAULT NULL,
PRIMARY KEY(id)
);
however.. after inserting a value like:
INSERT INTO options VALUES(0,'test@test.com',CURRENT_TIMESTAMP)
I got the created_at column with this value : 10:29 but right now the time is 16:29.
I believe that's because the server/db is located in the US and I'm in Brazil.
Is there a way to get my current time when inserting values into the table?