Correcting default date format on contract creation

This commit is contained in:
ewandor
2023-03-15 15:17:43 +01:00
parent 08cb2772ea
commit a16a122713

View File

@@ -111,7 +111,7 @@ export class DraftsCardComponent extends BaseDraftsComponent implements OnInit {
newContractFormfields: FormlyFieldConfig[] = []; newContractFormfields: FormlyFieldConfig[] = [];
newContractForm: FormGroup = new FormGroup({}); newContractForm: FormGroup = new FormGroup({});
newContractModel: any = { newContractModel: any = {
date: new Date(), date: formatDate(new Date(), 'YYYY-MM-dd', 'EN_US', 'CET'),
location: "Los Santos, SA", location: "Los Santos, SA",
draft_id: null draft_id: null
} }