tigase / beagle-im

(M) XMPP client for macOS based on TigaseSwift XMPP library
GNU General Public License v3.0
181 stars 21 forks source link

Relative timestamps incorrect #136

Open sideeffect42 opened 1 year ago

sideeffect42 commented 1 year ago

Describe the bug The relative timestamp yesterday is calculated incorrectly.

To Reproduce Steps to reproduce the behavior:

  1. Send a message to a contact in the afternoon (e.g. 15:00 / 3pm) on day X,
  2. wait until the morning (e.g. 10:00 / 10am) of day X+2,
  3. see timestamp yesterday in chat history.

Expected behavior The timestamp should show the date the message was sent instead of yesterday.

Desktop:

hantu85 commented 1 year ago

The whole UI for the conversation log will soon be replaced with SwiftUI-based UI and that will fix this issue as a different date formatter will be used to format the date to display (solving this issue).