@js-joda/core 5.5.1 → 5.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/js-joda.cjs.js +2 -2
- package/dist/js-joda.cjs.js.map +1 -1
- package/dist/js-joda.esm.js +2 -2
- package/dist/js-joda.esm.js.map +1 -1
- package/dist/js-joda.js +2 -2
- package/dist/js-joda.js.map +1 -1
- package/dist/js-joda.min.js +2 -2
- package/package.json +2 -2
- package/src/nativeJs.js +1 -1
- package/typings/js-joda.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@js-joda/core",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.3",
|
|
4
4
|
"description": "a date and time library for javascript",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"sourceMap": false,
|
|
49
49
|
"instrument": false
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "f5e3e48fc44f3d03247c186f13dc5ff6b5ae6c57"
|
|
52
52
|
}
|
package/src/nativeJs.js
CHANGED
|
@@ -19,7 +19,7 @@ export function nativeJs(date, zone = ZoneId.systemDefault()) {
|
|
|
19
19
|
if(date instanceof Date) {
|
|
20
20
|
return Instant.ofEpochMilli(date.getTime()).atZone(zone);
|
|
21
21
|
} else if(typeof date.toDate === 'function' && date.toDate() instanceof Date) {
|
|
22
|
-
return Instant.ofEpochMilli(date.
|
|
22
|
+
return Instant.ofEpochMilli(date.toDate().getTime()).atZone(zone);
|
|
23
23
|
}
|
|
24
24
|
throw new IllegalArgumentException('date must be a javascript Date or a moment instance');
|
|
25
25
|
}
|
package/typings/js-joda.d.ts
CHANGED
|
@@ -2185,7 +2185,7 @@ export class DateTimeFormatterBuilder {
|
|
|
2185
2185
|
|
|
2186
2186
|
append(formatter: DateTimeFormatter): DateTimeFormatterBuilder;
|
|
2187
2187
|
appendFraction(field: TemporalField, minWidth: number, maxWidth: number, decimalPoint: boolean): DateTimeFormatterBuilder;
|
|
2188
|
-
appendInstant(fractionalDigits
|
|
2188
|
+
appendInstant(fractionalDigits?: number): DateTimeFormatterBuilder;
|
|
2189
2189
|
appendLiteral(literal: any): DateTimeFormatterBuilder;
|
|
2190
2190
|
appendOffset(pattern: string, noOffsetText: string): DateTimeFormatterBuilder;
|
|
2191
2191
|
appendOffsetId(): DateTimeFormatterBuilder;
|