I have a 'created' column which is INTEGER and this is how I insert sqlite date into it:
ContentValues vals = new ContentValues();
vals.put(Column._CREATED_DATE, "strftime('%s','now')");
db.insert(Table.ARTICLE.name, null, vals);
Unbelievably he inserts strftime('%s','now') string into INTEGER column!
What the heck?
EDIT: when I run insert into article (created) values (strftime("%s","now")) in an SQLite browser, proper integer value is inserted...
created_time TIMESTAMP DEFAULT CURRENT_TIMESTAMPor something like that. - Jens