Skip to content

Commit

Permalink
Fix date property change detection.
Browse files Browse the repository at this point in the history
  • Loading branch information
Madeorsk committed Oct 5, 2024
1 parent e373efd commit ff9cb91
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</p>

<p align="center">
<img alt="Version 3.2.0" src="https://img.shields.io/badge/version-3.2.0-blue" />
<img alt="Version 3.2.1" src="https://img.shields.io/badge/version-3.2.1-blue" />
</p>

## Introduction
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sharkitek/core",
"version": "3.2.0",
"version": "3.2.1",
"description": "TypeScript library for well-designed model architectures.",
"keywords": [
"deserialization",
Expand Down
5 changes: 5 additions & 0 deletions src/Model/Types/DateType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ export class DateType extends Type<string, Date>

return value?.toISOString();
}

propertyHasChanged(originalValue: Date|null|undefined, currentValue: Date|null|undefined): boolean
{
return originalValue?.toISOString() != currentValue?.toISOString();
}
}

/**
Expand Down

0 comments on commit ff9cb91

Please sign in to comment.