Commit f3702b8cd73eb556065b56fd8a66d4c48dc7ed72
1 parent
044a9305
Exists in
master
and in
56 other branches
timeformat in webservices - case insensitive
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
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 : | ... | ... |