ThingSpeak data has wrong Time Zone
26 ビュー (過去 30 日間)
古いコメントを表示
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?
8 件のコメント
Andrew Clark
2023 年 8 月 18 日
Hi, yes, I thought of that. As you can see in the code I supplied in my query, I set the timezone explicitly to "-800" per the Thinkspeak protocol when I set the "Created_At" field (I am using an RTC to get more accurate timestamps on the data.)
timestamp += "-0800"; // add UTC adjustment for Pacific TZ
...
ThingSpeak.setCreatedAt(timestamp);
Is there a conflict between setting CreatedAt and the Thingspeak Profile? Should I stop setting the timezone in my CreatedAt field in the above Arduino code?
Another clue that might help: just now I set the Profile timezone to "-900 (Alaska)" and the timestamps all changed to the correct timezone - "-800"! So something is causing the time to be off by one hour.
Christopher Stapels
2023 年 9 月 28 日
ThingSpeak plots in your browser window will generally take the timezone set for your computer.
回答 (2 件)
Vinod
2023 年 8 月 18 日
移動済み: Christopher Stapels
2023 年 8 月 18 日
Go here and set your timezone to match your setting:
1 件のコメント
Andrew Clark
2023 年 8 月 18 日
Hi Vinod, my Profile looks to be set properly to Pacific:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1459677/image.png)
so, looking for something else...thanks!
Seth Furman
2022 年 9 月 13 日
dt = datetime(2022,1,1,12,0,0,"TimeZone","Etc/GMT-8")
dt.TimeZone = "Etc/GMT-7"
0 件のコメント
コミュニティ
その他の回答 ThingSpeak コミュニティ
参考
カテゴリ
Help Center および File Exchange で Read Data from Channel についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!