@bbn/bbn 2.0.133 → 2.0.135
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/bbn.js +1 -1
- package/dist/bbn.js.map +1 -1
- package/dist/dt/classes/dt.js +4 -1
- package/package.json +1 -1
package/dist/dt/classes/dt.js
CHANGED
|
@@ -200,6 +200,9 @@ export class bbnDt {
|
|
|
200
200
|
}
|
|
201
201
|
throw new TypeError('toZdt expects a bbnDt wrapper or ZonedDateTime');
|
|
202
202
|
};
|
|
203
|
+
if (unit === 'd') {
|
|
204
|
+
debugger;
|
|
205
|
+
}
|
|
203
206
|
// ---- CASE 1: same constructor → your original logic on raw Temporal ----
|
|
204
207
|
const rawA = unwrap(a);
|
|
205
208
|
const rawB = unwrap(b);
|
|
@@ -236,7 +239,7 @@ export class bbnDt {
|
|
|
236
239
|
if (typeof za.until !== 'function') {
|
|
237
240
|
throw new TypeError('ZonedDateTime does not support until/since');
|
|
238
241
|
}
|
|
239
|
-
const diff = za.until(zb, { largestUnit: realUnit });
|
|
242
|
+
const diff = za.until(zb, { largestUnit: realUnit, roundingMode: 'floor' });
|
|
240
243
|
return diff.sign;
|
|
241
244
|
}
|
|
242
245
|
// ---- CASE 3: not compatible ----
|