Skip to content

Fix group last message timezone conversion in homepage - #138

Merged
mrsumanbiswas merged 1 commit into
CommandLineCoding:v0.3.0from
Hamdan-harish:time-zone-bug
Jul 28, 2026
Merged

Fix group last message timezone conversion in homepage#138
mrsumanbiswas merged 1 commit into
CommandLineCoding:v0.3.0from
Hamdan-harish:time-zone-bug

Conversation

@Hamdan-harish

@Hamdan-harish Hamdan-harish commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #134
Fixes incorrect timestamps displayed for group conversations on the homepage.

Cause

Conversation.fromJson() converted last_message_time to local time using .toLocal(), while Group.fromJson() did not. As a result, group conversations displayed UTC timestamps instead of the user's local timezone in the homepage.

Fix

Convert last_message_time to local time in Group.fromJson() by applying .toLocal() after parsing.

Testing

  • Verified group conversation timestamps now match the local timezone.
  • Verified the timestamp shown on the homepage matches the timestamp shown inside the group chat.

@mrsumanbiswas
mrsumanbiswas merged commit 5fde773 into CommandLineCoding:v0.3.0 Jul 28, 2026
1 check passed
@Hamdan-harish
Hamdan-harish deleted the time-zone-bug branch July 28, 2026 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: Last message time issue in groups

2 participants