Setting Time zone using "created_at" field

Trident Pneumatics on 17 Feb 2021 (Edited on 17 Feb 2021)
Latest activity Reply by li on 4 Aug 2025

Hi, I am sending data from my device to the thingspeak server using HTTP and I'm trying to attach a timestamp with my uploads. I am using the created_at field in the request to set the time zone. A sample request looks like this

http://api.thingspeak.com/update?api_key=xxxyyyzzz&field1=3407.866699&field2=0.000000&field3=0.000000&field4=0.000000&field5=0.000000&field6=0.000000&field7=0.000000&field8=0.000000&created_at=2021-02-17T15:34:00+05:30

I live in India and my timezone offset is 5 hours 30 min. When I specify it like as shown above, I can see in the private view of my channel that it is adding 5 hours 30 min to the given time zone. So this time stamp becomes 21:04. How do I fix this? Am I making some mistake in my time zone offset in created_at? Or is there some time zone setting that is not set properly in my channel?

Thanks, Ashwin N

Christopher Stapels
Christopher Stapels on 17 Feb 2021

Your channel uses your profile settings to change the UTC timestamps saved in ThingSpeak into your local settings. If you want the data to show up in your local time, you can write UTC timestamps without the +5:30 and your channel will show them properly. Is this the effect you are trying to achieve?

Ramachandran Ammapet Vijayan
Ramachandran Ammapet Vijayan on 13 Jul 2022
I did the same. But not changing in the data displayed in my private channel. Please help
Christopher Stapels
Christopher Stapels on 13 Jul 2022

Can you describe specifically your problem? I think we resolved the OPs problem by removing the offset. Does that work for you?

li
li on 4 Aug 2025
I have same problem.Change the profile timezone have nothing to do with it .

Tags

No tags entered yet.