My Dashboard now shows the Time Picker time widget as 8hr ahead of my local time (Australia Perth).
eg local time is 15:11:02 Australia Perth dashboard Widget time is 23:11:02 Australia Perth
This Time Picker error has only recently occurred in the last few days.
It does not update the time unless the browser screen is refreshed.
The graphs on my dashboard show data with the correct horizontal local time scale.
The code in the loop is unchanged.
ArduinoCloud.update();
t = ArduinoCloud.getLocalTime();
time_read = t;
time_read is a variable of type CloudTime and Setup shows the last read value with the correct local time.
Hi @mackarduino.
Check to see if the time zone configuration for the Arduino Cloud IoT Thing that provides the time_read Variable is correct.
I'll provide instructions you can follow to check/configure the time zone for a Thing:
- If you are not already, log in to your Arduino account:
https://login.arduino.cc/login
- Click the following link to open the list of your Arduino Cloud Things in the web browser:
https://app.arduino.cc/things
- Click the name of the Thing for which you want to check/adjust the time zone configuration.
The "Setup" page for the Thing will open.
- Select the "Metadata" tab at the top of the page.
The Thing's metadata page will open.
- If necessary, select the desired time zone from the menu under the "Timezone" section of the page.
Hi ptillisch,
An update
I now have of one my dashboards TimePicker widget working correctly.
I changed some of the code and deleted the TimePicker widget and recreated it, added another Value widget and it started working correctly. The device is NodeMCU (ESP8266).
I still have 2 other dashboards with similar code which used to work correctly but are now not updating the TimePicker widget which is 8hr ahead until I refresh the browser. The other variables are correctly displayed although the time in the graph data point popup is incorrect. One device is Nano 33 and the other a NodeMCU (ESP8266).
TimePicker seems to cause issues as reported in the Forum.
Regards
mackarduino
Please check the Thing metadata by following the instructions in my previous reply.
The Thing metadata is something stored on the Arduino Cloud server, not in the Thing sketch program. So even if you are running the exact same code on two different Things, if the time zone is incorrectly configured in the Metadata of one thing, it will result in an unexpected times in the dashboard Widgets, even though another Thing with correctly configured metadata shows the expected times.
Hi ptillisch Arduino Team,
All dashboards using TimePicker widgets now function correctly.
The solution which I used was to go to the Setup page, select the CloudTime variable and Edit it by reselecting Time as the variable type.
No other changes were made to the code or the dashboard.
The Time Zone as displayed in Metadata was always unchanged and correctly set.
No further action required.
Regards
mackarduino
Thanks for taking the time to post an update. I'm glad everything is working now.
Regards, Per