Closed Jirles closed 8 months ago
Changes the way DATEADD function calculates dates to make it more daylight savings friendly. Based off of how date-fns implements its addDays method: https://github.com/date-fns/date-fns/blob/master/src/addDays/index.js#L33-L35
DATEADD
addDays
Also removes unnecessarytype parameter. Not only did type force a no-op if any value besides the default "days" was added, it wasn't even mentioned in our online documentation.
type
"days"
Looks good to me 👍
Changes the way
DATEADD
function calculates dates to make it more daylight savings friendly. Based off of how date-fns implements itsaddDays
method: https://github.com/date-fns/date-fns/blob/master/src/addDays/index.js#L33-L35Also removes unnecessary
type
parameter. Not only didtype
force a no-op if any value besides the default"days"
was added, it wasn't even mentioned in our online documentation.