Lattice Grid Buy a licence

The grid (rendering) ยท console.warn

column "{colId}" is type "{type}" but its format shows a time. The editor is including one so the time is not overwritten with midnight, but the column should be `type: "datetime"`: `date` means a calendar day.

Printed by The grid (rendering), prefixed [lattice], since 1.0.1.

Warnings referencedate-editor:time-format:*

Identifier
date-editor:time-format:*
Raised by
The grid (rendering)
Since
1.0.1

What happened

The column is typed as a calendar day and its format displays a time, so the values really do carry one. The editor includes a time field rather than obeying the type, because a date-only editor would write midnight back and destroy the time on every edit. The grid is therefore doing the safe thing and telling you the type is wrong.

The fix

Type the column 'datetime'. The editor then matches the type and nothing else has to guess.

The smallest fix

columns: [{ id: 'seenAt', type: 'datetime', format: { date: 'yyyy-MM-dd HH:mm' } }]

Reference

Covered in full at the API reference.