Emilio
March 2, 2018, 8:22pm
1
Hi,
the timer widget’s doc has a note…
NOTE: The timer widget rely on the server time and not your phone time. Sometimes the phone time may not match the server time.
Is there a way to find out the cloud’s server time? It seems to be at GMT +1, is it correct? Or exist several servers at different locations?
TIA
This has been discussed in some detail in this thread:
I’m using the RTC widget in my project. The time is being synchronised with the Blynk server, formatted by strftime and printed as under:
tm * ts;
void requestTime() {
Blynk.sendInternal("rtc", "sync");
}
BLYNK_WRITE(InternalPinRTC) {
long t = param.asLong();
setTime(t);
Serial.print("\nUnix time: ");
Serial.print(t);
Serial.println();
rawtime=t;
char daystr[3]="";
char timestr[6]="";
char yearstr[5] = "";
if (IsFirstConnect)
{
FirstConnectTime=t;
IsFirstCo…
Pete.
You don’t need to worry about that. All time is stored in UTC and server uses user time zone and applies it. So time is always correct for you. The note itself is about precise timing, like dew seconds or event seconds as timers (on phone and on server) may be a bit different.