SQLite timestamp fix (Fix #4282)