# Batch measurements timestamps not being recognized

**URL:** <https://community.cumulocity.com/t/batch-measurements-timestamps-not-being-recognized/3721>\
**Category:** Forum\
**Tags:** cumulocity\
**Created:** [March 13, 2022, 11:04pm UTC](https://community.cumulocity.com/t/batch-measurements-timestamps-not-being-recognized/3721 "2022-03-13T23:04:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Umer\_Fraz](https://avatars.discourse-cdn.com/v4/letter/u/d6d6ee/32.png) [@Umer\_Fraz](https://community.cumulocity.com/u/Umer_Fraz)\
**Post date:** [March 13, 2022, 11:04pm UTC](https://community.cumulocity.com/t/batch-measurements-timestamps-not-being-recognized/3721/1 "2022-03-13T23:04:37Z")

</div>

I have an MQTT device trying to send data in batch e.g. records every half hour but sends 12th hour. But when it does, the timestamps are completely ignored and all data is just packed for the time when C8Y receives this batch this was working fine till about a month ago. here is a format for example  
“200,ExportActiveEnergy,ExportActiveEnergy,0,kWh,13-03-2022T20:19:47.000Z”  
Any help will be highly appreciated.  
has the format changed? i have looked every where but there is no example on how to format the timestamp.

---

<div class="post-metadata">

**Author:** ![Stefan\_Witschel](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/stefan_witschel/32/31955_2.png) [@Stefan\_Witschel](https://community.cumulocity.com/u/Stefan_Witschel)\
**Post date:** [March 14, 2022, 7:16am UTC](https://community.cumulocity.com/t/batch-measurements-timestamps-not-being-recognized/3721/2 "2022-03-14T07:16:15Z")

</div>

Hi Umer,

your UTC Timestamp seems to be wrong. It should be in the format: yyyy-MM-dd’T’HH:mm:ss.SSSZ  
In your example: 2022-03-13T20:19:47.000Z

You can find some examples of that timestamp format here: [SmartREST - Cumulocity IoT Guides](https://cumulocity.com/guides/reference/smartrest-two/)

Regards  
Stefan

---

<div class="post-metadata">

**Author:** ![Umer\_Fraz](https://avatars.discourse-cdn.com/v4/letter/u/d6d6ee/32.png) [@Umer\_Fraz](https://community.cumulocity.com/u/Umer_Fraz)\
**Post date:** [March 14, 2022, 4:59pm UTC](https://community.cumulocity.com/t/batch-measurements-timestamps-not-being-recognized/3721/3 "2022-03-14T16:59:37Z")

</div>

Stefan: many thanks, for the prompt reply and for resolving my issue. It was a silly mistake and me and my entire team was not able to see it. 🙂👍

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)\
**Post date:** [June 12, 2022, 5:00pm UTC](https://community.cumulocity.com/t/batch-measurements-timestamps-not-being-recognized/3721/4 "2022-06-12T17:00:03Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
