backk-frontend-utils
Advanced tools
Comparing version 1.0.103 to 1.0.104
@@ -56,3 +56,3 @@ import { registerDecorator } from 'cv-pksilen'; | ||
validate(value) { | ||
const date = dayjs(value); | ||
let date = dayjs(value); | ||
if (unit === 'isoDayOfWeek') { | ||
@@ -73,11 +73,11 @@ const dayOfWeek = date.isoWeekday(); | ||
if (unit === 'hour' || unit === 'minute') { | ||
date.set('year', 1970); | ||
date.set('month', 0); | ||
date.set('date', 1); | ||
startTimestamp.set('year', 1970); | ||
startTimestamp.set('month', 0); | ||
startTimestamp.set('date', 1); | ||
endTimestamp.set('year', 1970); | ||
endTimestamp.set('month', 0); | ||
endTimestamp.set('date', 1); | ||
date = date.set('year', 1970); | ||
date = date.set('month', 0); | ||
date = date.set('date', 1); | ||
startTimestamp = startTimestamp.set('year', 1970); | ||
startTimestamp = startTimestamp.set('month', 0); | ||
startTimestamp = startTimestamp.set('date', 1); | ||
endTimestamp = endTimestamp.set('year', 1970); | ||
endTimestamp = endTimestamp.set('month', 0); | ||
endTimestamp = endTimestamp.set('date', 1); | ||
} | ||
@@ -84,0 +84,0 @@ return date.isBetween(startTimestamp, endTimestamp, unit); |
{ | ||
"name": "backk-frontend-utils", | ||
"version": "1.0.103", | ||
"version": "1.0.104", | ||
"description": "Web frontend utils for Backk microservices", | ||
@@ -5,0 +5,0 @@ "author": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
327071