ThingSpeak data has wrong Time Zone

16 views (last 30 days)
Bernard FluscheJr
Bernard FluscheJr on 9 Sep 2022
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
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.

Sign in to comment.

Answers (1)

Seth Furman
Seth Furman on 13 Sep 2022
dt = datetime(2022,1,1,12,0,0,"TimeZone","Etc/GMT-8")
dt = datetime
01-Jan-2022 12:00:00
dt.TimeZone = "Etc/GMT-7"
dt = datetime
01-Jan-2022 11:00:00

Communities

More Answers in the  ThingSpeak Community

Categories

Find more on Dates and Time in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!