@tmlmobilidade/go-utils-dates 20260905.1222.34 → 20260905.1406.50

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.
Files changed (2) hide show
  1. package/dist/dates.js +5 -4
  2. package/package.json +1 -1
package/dist/dates.js CHANGED
@@ -370,9 +370,10 @@ export class Dates {
370
370
  if (!isoDate)
371
371
  throw new Error('ISO date is not set.');
372
372
  const dateTime = DateTime.fromISO(isoDate, { setZone: true });
373
- return {
374
- end: dateTime.plus({ hours: Dates.standardWindowHours }).toMillis(),
375
- start: dateTime.minus({ hours: Dates.standardWindowHours }).toMillis(),
376
- };
373
+ // Get the start and end of the standard window interval
374
+ const startMs = dateTime.minus({ hours: Dates.standardWindowHours }).startOf('hour').toMillis();
375
+ const endMs = dateTime.plus({ hours: Dates.standardWindowHours }).endOf('hour').toMillis();
376
+ // Return the start and end of the standard window interval
377
+ return { end: endMs, start: startMs };
377
378
  }
378
379
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/go-utils-dates",
3
- "version": "20260905.1222.34",
3
+ "version": "20260905.1406.50",
4
4
  "author": {
5
5
  "email": "iso@tmlmobilidade.pt",
6
6
  "name": "TML-ISO"