Uli Kusterer (Not a kitteh)<p>DST change reminded me of that time QA discovered that, if you build a date from NSDateComponents, any missing items will not be set to zero, but will be set to the corresponding value from the current date and time.</p><p>Which meant that my March 30th, 12:00 would get random one-minute-drift like 12:00:59 because the user entered the date right before a minute change.</p><p>Makes sense for the date, but was a bit bewildering for the time, especially seconds.</p><p><a href="https://chaos.social/tags/cocoa" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cocoa</span></a> <a href="https://chaos.social/tags/appkit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>appkit</span></a> <a href="https://chaos.social/tags/foundation" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>foundation</span></a> <a href="https://chaos.social/tags/macProgramming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>macProgramming</span></a></p>