My application needs correct time. The code that I have been using with the Core has the following snippet in setup():
while(Time.year() <= 1970)
This was previously suggested on this forum as a good way to ensure that the program doesn’t get into loop() until the Time is synced with the cloud. It has been working just fine on Cores.
I now have the program loaded on Photon and I do understand that Spark.syncTime() is not working on Photon, but that time is initialized on startup. I can confirm that time initialization from the Cloud does work if (1) you flash new firmware to the Photon, or (2) if you power up the Photon. HOWEVER, if I press the Reset button on the Photon, my program seems stuck forever in this loop(), meaning that the reset button reset does not seem to automatically sync Photon time with the cloud.
I hope that the fix for Spark.syncTime() in the next release will fix this problem as well, but I wanted to bring it to your attention.