ThingSpeak data has wrong Time Zone
16 views (last 30 days)
Show older comments
My pofile has the Time Zone set to US Mountain (GMT-07:00), but the data is being displayed with US Pacific time (GMT-08:00). I am not encoding any explict time or zone information with my data.
How do I get the data to display in Mountain Time?
3 Comments
Christopher Stapels
on 13 Sep 2022
The ThingSpeak plots use your computer setting.
You can use a custom MATLAB visualization and the code provided by Seth below to create a chart with a display in your desired time zone.
There is a time zone parameter in the Charts API, but I feel it is still subordinate to the computer time zone, so that might not help.
Answers (1)
Seth Furman
on 13 Sep 2022
dt = datetime(2022,1,1,12,0,0,"TimeZone","Etc/GMT-8")
dt.TimeZone = "Etc/GMT-7"
0 Comments
Communities
More Answers in the ThingSpeak Community
See Also
Categories
Find more on Dates and Time in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!