diff --git a/package.json b/package.json index fe9fd71..fc41ebf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@sharkitek/core", - "version": "2.1.2", + "version": "2.1.3", "description": "Sharkitek core models library.", "keywords": [ "sharkitek", diff --git a/src/Model/Types/DateType.ts b/src/Model/Types/DateType.ts index 0607a31..2337efb 100644 --- a/src/Model/Types/DateType.ts +++ b/src/Model/Types/DateType.ts @@ -12,7 +12,7 @@ export class DateType extends Type serialize(value: Date): string { - return value.toISOString(); + return value?.toISOString(); } }