Arduino library to facilitate time zone conversions and automatic daylight saving (summer) time adjustments.
Add depends to library.properties.
Fix buffer overrun in example sketches.
Add example sketch to test library operation.
Constructors needed to initialize the variables that contain the DST and standard time start points for local time and UTC. If Timezone objects were dynamically allocated (with new
), then deleted and re-allocated, residue in the uninitialized variables could cause functions (e.g. utcIsDST()
) to return invalid results. This would also theoretically be possible when not using dynamic allocation, but would be exceedingly rare.
Update example sketches: