Commit 56e2072a082cbf46c3733a379261f2520b00f0f0

Authored by Benjamin Renard
2 parents cebaa4ba 058b366f

Merge branch 'master' into expression-parser-bre

src/InputOutput/IHMImpl/Tools/IHMParamManagerClass.php
... ... @@ -402,8 +402,10 @@ class IHMParamManagerClass
402 402  
403 403 if (!$res["success"])
404 404 throw new Exception('Error to load uploaded parameter file : '.$res["message"]);
  405 +
  406 + $paramId = $param;
405 407  
406   - $newParamNode = $paramsData->addLocalParamToCreate($res["param"]["id"],
  408 + $newParamNode = $paramsData->addLocalParamToCreate($paramId,
407 409 $res["param"]["info"]["viId"], $res["param"]["info"]["realVar"],
408 410 $res["param"]["info"]["minSampling"], $res["param"]["info"]["maxSampling"],
409 411 $res["param"]["info"]["type"],$res["param"]["info"]["size"],
... ... @@ -515,7 +517,7 @@ class IHMParamManagerClass
515 517 }
516 518 }
517 519  
518   - return array("id" => $res["param"]["id"], "plotType" => $res["param"]["info"]["plotType"]);
  520 + return array("id" => $paramId, "plotType" => $res["param"]["info"]["plotType"]);
519 521 }
520 522  
521 523 public function applyRangesAndIndexes($paramsData, $paramData, $force_total_2d, &$paramInfo) {
... ...
src/InputOutput/WSImpl/Params/DownloadImpl/WSInputOutputParamsDownloadClass.php
... ... @@ -37,7 +37,7 @@ class WSInputOutputParamsDownloadClass extends IHMInputOutputParamsAbstractClass
37 37 $downloadNode->setTimeFormat(RequestOutputDownloadTimeFormatEnum::ISO);
38 38 break;
39 39 case 'UNIXTIME' :
40   - $downloadNode->setTimeFormat(RequestOutputDownloadTimeFormatEnum::TIMESTAMP);
  40 + $downloadNode->setTimeFormat(RequestOutputDownloadTimeFormatEnum::MS);
41 41 break;
42 42 default :
43 43 $downloadNode->setTimeFormat(RequestOutputDownloadTimeFormatEnum::ISO);
... ...