chipmc
November 4, 2019, 10:10pm
4
@glx ,
Complicated for sure. I took some code that @rickkas7 made and created a DST function that works for the US. Not as robust as TZCfg but is completely local.
@ScruffR ,
I took a whack at modifying your isDST function for use in the United States. I have created a simple test sketch that seems to work and posted it to Github:
I made use of the standard Particle functions isDST, beginDST, endDST so I have a slightly different syntax:
if (Time.isValid())
{ // We only want to run this if time is valid - otherwise random result
isDSTusa() ? Time.beginDST() : Time.endDST();
}
Comments / suggestions / criticisms are welcome. I hope th…
Chip
1 Like