telefonicaid / fiware-device-simulator

Simulator of FIWARE-compatible devices (UltraLight 2.0, JSON & NGSIv2)
GNU Affero General Public License v3.0
8 stars 13 forks source link

uncaughtException: TypeError: theFromDate.getTime is not a function #66

Closed ghost closed 5 years ago

ghost commented 5 years ago

When using --from/--to with Date-parsable strings, such as bin/fiwareDeviceSimulatorCLI -f 2019-08-20T00:00:00.0Z -t 2019-08-20T23:59:59.9Z (or via -x), the CLI fails with the following exception:

{"lvl":"ERROR","msg":"error event: { error: 'uncaughtException: TypeError: theFromDate.getTime is not a function' }"}

Bug present with both non-Docker Node v8.12.0 and the latest Docker image. PR incoming.