Change the base setting of EnqueuedTimeUtc (Azure IoT Hub)

adems 1 Reputation point
2022-03-16T18:46:03.937+00:00

Hello,
I'm trying to write messages into JSON files in Storage container (Azure IoT Hub).
Is it possible to change the base setting of "EnqueuedTimeUtc". It is UTC now. For example, could I change it to UTC-4?
Thank you.

Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,136 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sander van de Velde 29,616 Reputation points MVP
    2022-03-16T22:13:31.833+00:00

    Hello @adems ,

    it seems you are routing incoming IoT Hub messages to Azure Blob Storage.

    Each message is enriched by the IoT Hub with 'system properties' (eg. name of the IoT Hub, Partition key)

    The IoT Hub also adds the timestamp regarding the arrival of the messages.

    This is in UTC (no time zone, universal time) because the devices can be positioned all over the world. By using UTC for all devices, you get a historically correct list of events.

    This is a 'hard-coded' behavior and not changeable.

    It's up to you to convert this in the local time of the user. This is a common programming pattern. Internally use UTC, externally use the converted timezone the user is familiar with. This is more work on the UI but the experience is as expected.

    0 comments No comments