db.execSQL(String.format("INSERT INTO %s(%s,%s,%s,%s,%s,%s,%s,%s,%s) ",table_temp,key_id,key_remote_id,key_status,key_title,key_modified,key_content,key_favorite,key_category,key_etag)
+String.format("SELECT %s,%s,%s,%s,strftime('%%s',%s),%s,%s,%s,%s FROM %s",key_id,key_remote_id,key_status,key_title,key_modified,key_content,key_favorite,key_category,key_etag,table_notes));
@@ -500,7 +502,7 @@ public class NoteSQLiteOpenHelper extends SQLiteOpenHelper {
// used by: NoteServerSyncHelper.SyncTask.pullRemoteChanges()
// update only, if not modified locally (i.e. STATUS="") and if modified remotely (i.e. any (!) column has changed)
whereClause=key_id+" = ? AND "+key_status+" = ? AND ("+key_modified+"!=? OR "+key_title+"!=? OR "+key_favorite+"!=? OR "+key_category+"!=? OR "+(remoteNote.getEtag()!=null?key_etag+" IS NULL OR ":"")+key_etag+"!=? OR "+key_content+"!=?)";