@beyonk/date-utils
Advanced tools
Comparing version 4.7.5 to 4.7.6
@@ -9,6 +9,8 @@ import dayjs from 'dayjs' | ||
const start = toDate(date, tz) | ||
const finish = | ||
isDuration(other) ? start.add(dayjs.duration(other)) : toDate(other, tz) | ||
return { start, finish } | ||
if (isDuration(other)) { | ||
const duration = dayjs.duration(other) | ||
const seconds = duration.asSeconds() | ||
return { start, finish: start.add(seconds, 'seconds') } | ||
} | ||
return { start, finish: toDate(other, tz) } | ||
} | ||
@@ -15,0 +17,0 @@ |
{ | ||
"name": "@beyonk/date-utils", | ||
"version": "4.7.5", | ||
"version": "4.7.6", | ||
"description": "Beyonk Date Utils", | ||
@@ -5,0 +5,0 @@ "author": "Antony Jones <aj@desirableobjects.co.uk>", |
Sorry, the diff of this file is not supported yet
44811
1469