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
The birthday next command produces incorrect output.
The cause is that when sorting birthdays, their original years are used, which leads to them being sorted according to years first, then months, then days.
The intended behaviour is for birthdays to be sorted according to months and days only.
A possible fix would be to map() the birthdays to dates with the current year and UTC timezone before sorting them, though this would result in the allocation of another Vec<DateTime<Utc>>.
The text was updated successfully, but these errors were encountered:
The
birthday next
command produces incorrect output.The cause is that when sorting birthdays, their original years are used, which leads to them being sorted according to years first, then months, then days.
The intended behaviour is for birthdays to be sorted according to months and days only.
A possible fix would be to
map()
the birthdays to dates with the current year and UTC timezone before sorting them, though this would result in the allocation of anotherVec<DateTime<Utc>>
.The text was updated successfully, but these errors were encountered: