I have the following defining a table:
CREATE TABLE players(playerid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
name VARCHAR(20) NOT NULL UNIQUE,
added DATETIME DEFAULT CURRENT_TIMESTAMP);
The CURRENT_TIMESTAMP
relentlessly inserts 1970-01-01
. I am loosely aware of the significance of this date and how some timestamps are a positive/negative offset from it; however, from what I've read elsewhere, my default timestamp should use the current time/date, as is suggests. Also, should a timestamp not include the time (from 1970 or otherwise)?
Thanks! :)