Question about Huabao Protocol - Timezone handling

SwayDev2 years ago

Hello,

On Line #L214

If the device attribute does not contain a timezone, then the code sets the device timezone to GMT +8

In the above scenario, the device reports the time in UTC Time. The time displayed will be wrong until and unless we set the device timezone attribute and set it to UTC.

Is this expected for this protocol?

Anton Tananaev2 years ago

It is expected. Huabao protocol is an exception from the rule. Most of the devices are reporting GMT+8, as far as I know.

SwayDev2 years ago

Thank you, that makes sense.

As with all JimiIot trackers, for the VL502 device, we are able to set the time so we set it to UTC to keep it consistent with all devices and Traccar.

Is there a way this can be addressed in cases where the tracker is able to send UTC time?

Anton Tananaev2 years ago

You can always explicitly configure the timezone.