Commit f3702b8cd73eb556065b56fd8a66d4c48dc7ed72

Authored by Elena.Budnik
1 parent 044a9305

timeformat in webservices - case insensitive

src/InputOutput/WSImpl/Params/DownloadImpl/WSInputOutputParamsDownloadClass.php
... ... @@ -31,12 +31,12 @@ class WSInputOutputParamsDownloadClass extends IHMInputOutputParamsAbstractClass
31 31 $outputsNode = $requestNode->getOutputsNode();
32 32 $downloadNode = $outputsNode->addNewOutput(RequestOutputTypeEnum::DOWNLOAD);
33 33  
34   - switch ($input->timeformat)
  34 + switch (strtoupper($input->timeformat))
35 35 {
36 36 case 'ISO08601' :
37 37 $downloadNode->setTimeFormat(RequestOutputDownloadTimeFormatEnum::ISO);
38 38 break;
39   - case 'unixtime' :
  39 + case 'UNIXTIME' :
40 40 $downloadNode->setTimeFormat(RequestOutputDownloadTimeFormatEnum::TIMESTAMP);
41 41 break;
42 42 default :
... ...