But in this link isn&#x27;t code setting day to Nov 1 when it hits Oct 31? Am i reading some wrong?<p>if (tm-&gt;tm_mon == 10 &amp;&amp; tm-&gt;tm_mday == 31) {
	dev_warn(dev, &quot;correcting Nov 31st to Dec 1st (HW bug)\n&quot;);
	tm-&gt;tm_mon = 11;
	tm-&gt;tm_mday = 1;
	rk808_rtc_set_time(dev, tm);
	}