Skip to content

Commit

Permalink
fixed order of generation of fake data
Browse files Browse the repository at this point in the history
so that cypress tests maybe succeed
  • Loading branch information
OmarHawk committed Jan 15, 2025
1 parent 9aa75bb commit b20b2f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generators/base-application/support/prepare-field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,10 @@ function generateFakeDataForField(
originalData = date.toISOString();
if (field.fieldType === LOCAL_DATE) {
data = originalData.split('T')[0];
} else if (type === 'json-serializable') {
data = date;
} else if (field.fieldType === LOCAL_TIME) {
data = originalData.split('T')[1].split('.')[0];
} else if (type === 'json-serializable') {
data = date;
} else {
// Write the date without milliseconds so Java can parse it
// See https://stackoverflow.com/a/34053802/150868
Expand Down

0 comments on commit b20b2f8

Please sign in to comment.