I created a table in sqlite database that is something like this:
CREATE TABLE users(
id INTEGER PRIMARY KEY,
username TEXT,
created_at DATETIME DEFAULT CURRENT_TIMESTAMP
);
When I insert data in this table, the date field is automatically set.
When I try to retrieve the content of the inserted row.
c.getString(c.getColumnIndex("created_at")));
where c is the Cursor.
The date I retrieve is 1 hour behind the correct date. Consider that I'm in Italy (UTC+1.00)
How can I obtain the correct date?