Commit 1217d61d authored by project's avatar project

--no commit message

--no commit message
parent e0798d62
......@@ -34,7 +34,7 @@ function execute_function(context,response){
memstore.getItem(`${param.station_id}-${dtype}`, function(err, lts){ //latest timestamp, format: yyyy-MM-dd HH:mm:ss
idx++;
//console.log(`memstore: ${param.station_id}-${dtype} = ${lts}`);
if (typeof lts === "undefined") lts = moment(`${param.init_observed_date} ${param.init_observed_time}`);
if (!lts) lts = moment(`${param.init_observed_date} ${param.init_observed_time}`);
else lts = moment(lts).add(1, 'seconds');
//console.log(`memstore: ${param.station_id}-${dtype} = ${lts}`);
//let recvTime = cts.diff(lts, "days");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment