Tenho o seguinte código:
View:
{
xtype: 'timefield',
name: 'attendance_time',
fieldLabel: 'Hora',
inputWidth: 100,
format: 'H:i',
submitFormat: 'H:i',
altFormats: 'H:i',
}
Model:
{
name: 'attendance_time',
type: 'date',
dateFormat: 'H:i'
}
Campo no banco:
ALTER TABLE person_attendances ADD COLUMN attendance_time TIME(0) DEFAULT CURRENT_TIME;
Erro ao tentar incluir:
SQLSTATE[22007]: Invalid datetime format: 7 ERROR: invalid input syntax for type time: "2019-10-03T01:15:00", query was: INSERT INTO "person_attendances" ("person_id", "origin", "name", "category", "description", "tag", "attendance_date", "attendance_time", "title", "id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)