bkad / prat

group chat with markdown served over websockets
11 stars 6 forks source link

Contextual time error with dates with day of the month difference of one but actually months apart #110

Closed stevenguyenimpermium closed 10 years ago

stevenguyenimpermium commented 10 years ago

See this line for the calculation of contextual date for yesterday. This doesn't handle the case where the dates are months apart. For example: Today is December 9, and the date of the chat is November 8. This line will trigger "yesterday".

Actually, same for the above line. That could also trigger unintentionally.

bkad commented 10 years ago

Wow that was sloppy, thanks for catching this.