You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 9, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: projects/angular-stdlib/date/CHANGELOG.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@
9
9
10
10
### Features
11
11
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
Copy file name to clipboardExpand all lines: projects/angular-stdlib/date/README.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,12 +34,13 @@ import { AngularDateHttpInterceptor } from '@ps-angular-common/date';
34
34
exportclassAppModule { }
35
35
```
36
36
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
38
39
39
40
### DateFormatter
40
41
41
42
`DateFormatter` is a static class that provides :
42
43
***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.
45
46
* Only use when you have to serialize dates and you don't want serialization to apply zero UTC offset transformation.
0 commit comments