SEARCH-480

- Fixed the time issue
This commit is contained in:
Keerthi Niranjan 2017-11-23 15:57:26 +05:30
parent 83d16928e0
commit c93e7a45d7

View File

@ -255,10 +255,10 @@ class Search {
} }
let sd = new Date().getTime() - SEARCH_PERIOD_SUBTRACTOR; let sd = new Date().getTime() - SEARCH_PERIOD_SUBTRACTOR;
let sd_time = MINIMUM_DATE; let sd_time = sd;
if (startDate && startDate !== "") { if (startDate && startDate !== "") {
sd_time = new Date(parseInt(startDate, 10)).getTime(); sd_time = new Date(parseInt(startDate, 10)).getTime();
if (sd_time >= sd) { if (sd_time < sd) {
sd_time = sd; sd_time = sd;
} }
} }