elasticio / component-commons-library

Storage for most common component development cases
Apache License 2.0
0 stars 0 forks source link

Fix time variables processing for PollingTrigger #30

Open denyshld opened 4 years ago

denyshld commented 4 years ago

Current implementations of getEndTime and getStartTime methods returns cfg[END_TIME] || new Date(MAX_DATE) which should new wrapped into new Date() one more time to be sure in Date object processing. Also, need to add validation for possible Invalid Date value in case of incorrect input