diff --git a/generators/base-application/support/prepare-field.ts b/generators/base-application/support/prepare-field.ts index cca08e052c1..94e139431ce 100644 --- a/generators/base-application/support/prepare-field.ts +++ b/generators/base-application/support/prepare-field.ts @@ -172,8 +172,8 @@ function generateFakeDataForField( } else if (field.fieldType === LOCAL_TIME) { // time without seconds by default const timeWithoutMilliseconds = originalData.split('T')[1].split('.')[0]; - // default time input fields are set to support HH:mm only. Would produce validation errors otherwise. - data = timeWithoutMilliseconds.substring(0, timeWithoutMilliseconds.lastIndexOf(':')); + // default time input fields are set to support HH:mm. Some databases require :00 during loading of fake data to detect the datatype. + data = `${timeWithoutMilliseconds.substring(0, timeWithoutMilliseconds.lastIndexOf(':'))}:00`; } else if (type === 'json-serializable') { data = date; } else {