Skip to content
This repository was archived by the owner on Sep 9, 2024. It is now read-only.

Commit 512fe15

Browse files
committed
Improve CHANGELOG and README
1 parent be6ee8d commit 512fe15

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

projects/angular-stdlib/date/CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
### Features
1111

12-
* **AngularDateHttpInterceptor:** Interceptor that handle Http Request and convert from JSON response body : **ISO 8601** date and datetime to Date object.
13-
> Only necessary due to `ngx-bootstrap/datepicker` dependency use, this one does not handle *ISO string dates* unlike **Angular**.<br/>
14-
> Linked to this unresolved issue : https://github.com/valor-software/ngx-bootstrap/issues/4487
12+
* **AngularDateHttpInterceptor:** provides an interceptor that intercepts HTTP calls and converts from JSON response body : **ISO 8601** date and datetime strings to native Date object.
13+
> NOTE - Only necessary for projects using dependencies like `ngx-bootstrap/datepicker`, this one does not handle *ISO string dates* unlike **Angular**.<br/>
14+
> Linked to this open issue : https://github.com/valor-software/ngx-bootstrap/issues/4487
1515
* **DateFormatter:** contains ISO_DATE formatter.

projects/angular-stdlib/date/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,13 @@ import { AngularDateHttpInterceptor } from '@ps-angular-common/date';
3434
export class AppModule { }
3535
```
3636

37-
> NOTE - `AngularDateHttpInterceptor` is only necessary due to [ngx-bootstrap/datepicker](https://github.com/valor-software/ngx-bootstrap/tree/development/src/datepicker) dependency use, this one does not handle "ISO string dates" unlike Angular. Linked to this unresolved issue: https://github.com/valor-software/ngx-bootstrap/issues/4487
37+
> NOTE - `AngularDateHttpInterceptor` for projects using dependencies like [ngx-bootstrap/datepicker](https://github.com/valor-software/ngx-bootstrap/tree/development/src/datepicker), this one does not handle "ISO string dates" unlike Angular.<br>
38+
> Linked to this open issue: https://github.com/valor-software/ngx-bootstrap/issues/4487
3839
3940
### DateFormatter
4041

4142
`DateFormatter` is a static class that provides :
4243
* **ISO_DATE** string format (*yyyy-MM-dd*) to use with Angular [DatePipe](https://angular.io/api/common/DatePipe).
43-
* `toFakeSerializedDate(date: Date)` method transforms the param date in the same way as it is serialized :
44-
* Serialization uses `JSON.stringify` method which use the date `toJSON()` method which transforms the date into UTC Z.
44+
* `toFakeSerializedDate(date: Date)` method : transforms the param date in the same way as it would be serialized :
45+
* Serialization uses `JSON.stringify` method which use the `toJSON()` date method which transforms the date into UTC Z.
4546
* Only use when you have to serialize dates and you don't want serialization to apply zero UTC offset transformation.

0 commit comments

Comments
 (0)