You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While I was testing something I was not sure if Date().dateAt(.endOfDay) and Date().dateAtEndOf(.day) produced the same result, so I tried comparing them like this
While I was testing something I was not sure if
Date().dateAt(.endOfDay)
andDate().dateAtEndOf(.day)
produced the same result, so I tried comparing them like thisWhich produced the error
Which seemed odd, using
It shows the problem
From what I looked trough, they don't use the same implementation, which does not seem like a good idea and can lead to unexpected problems.
(I realise that date comparison should be done using methods proper for that, but these two should not differ)
The text was updated successfully, but these errors were encountered: