Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
laveur
· 3mo ago · 0 comments
I tried to create a date object in Swift from the date October 5, 1582. The resultant date object was October 15th 1582.
Comments
[–]
Cthulhu_
3mo ago
This is (weirdly) in line with behaviour I've observed in iOS's date picker; if you set a block of dates as not available, and the selected date inside of that unavailable block, it will automatically select the first available date on open.
[–]
pasc1878
3mo ago
Why is that weird. They are both using Apple code - Swift probably has to meet Objective C dates or even uses the Objective C date functions.