int ret = 0;
char query[CAL_DB_SQL_MAX_LEN] = {0};
snprintf(query, sizeof(query), "INSERT INTO %s (event_id, dtstart_utime, dtend_utime) "
- "VALUES (%d, %lld, %lld) ", CAL_TABLE_NORMAL_INSTANCE, event_id, s, e);
+ "VALUES (%d, %lld, %lld) ", CAL_TABLE_UTIME_INSTANCE, event_id, s, e);
ret = cal_db_util_query_exec(query);
if (CALENDAR_ERROR_NONE != ret) {
int ret = 0;
char query[CAL_DB_SQL_MAX_LEN] = {0};
snprintf(query, sizeof(query), "INSERT INTO %s (event_id, dtstart_datetime, dtend_datetime) "
- "VALUES (%d, '%s', '%s') ", CAL_TABLE_ALLDAY_INSTANCE, event_id, s, e);
+ "VALUES (%d, '%s', '%s') ", CAL_TABLE_LOCALTIME_INSTANCE, event_id, s, e);
ret = cal_db_util_query_exec(query);
if (CALENDAR_ERROR_NONE != ret) {