Skip to content

Commit 74cf0b2

Browse files
committed
Add DEBUG_DEBUG print to keep track of offset and dst_until changes
1 parent a52d001 commit 74cf0b2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/utility/time/TimeService.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,12 @@ unsigned long TimeService::getTime()
9393

9494
void TimeService::setTimeZoneData(long offset, unsigned long dst_until)
9595
{
96+
if(_timezone_offset != offset)
97+
DEBUG_DEBUG("ArduinoIoTCloudTCP::%s tz_offset: [%d]", __FUNCTION__, offset);
9698
_timezone_offset = offset;
99+
100+
if(_timezone_dst_until != dst_until)
101+
DEBUG_DEBUG("ArduinoIoTCloudTCP::%s tz_dst_unitl: [%ul]", __FUNCTION__, dst_until);
97102
_timezone_dst_until = dst_until;
98103
}
99104

0 commit comments

Comments
 (0)