I need that every time I make a change to a certain record from a table in SQLite, in the column lastChangedDate to set the time from France. Here is the structure of my table :
CREATE TABLE name(
id VARCHAR(36) PRIMARY KEY
, pos_report_id VARCHAR(36)
, path_name VARCHAR(64)
, photo_name VARCHAR(64)
, from_scratch INTEGER DEFAULT 0
, lastChangedDate DATETIME DEFAULT (DATETIME('now', 'utc', '1 hours'))
)
I see that DATETIME('now')
returns 2 hours before my real time and DATETIME('now', 'utc', '1 hours')
returns with 3 hours before my time. Why is happening this? I need the application to work in more countries, so I cannot use localtime
.
Any idea how to solve this?