I insert a record into sqlite database a date by current_timestamp. The idea ist, NOT to set the time manually. Now, the thing is, that my date in the database is 5.30 hours after inserting. Any ideas, how to walk around or fix that?
use :
CREATE TABLE table
( ...
, yourColumnName DATETIME DEFAULT (DATETIME(CURRENT_TIMESTAMP, 'LOCALTIME'))
, ...
);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With