Skip to content

Commit

Permalink
fix(utils): fix formatTimestamp function
Browse files Browse the repository at this point in the history
  • Loading branch information
Mo2Hefny committed Nov 29, 2024
1 parent ee2bd38 commit c8be1bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ String formatTimestamp(DateTime timestamp) {
}

// If the message is older than 7 days, show the full date
if (diff <= 7) {
if (diff <= 365) {
return DateFormat('MMM dd').format(timestamp); // Nov 03
}

Expand Down

0 comments on commit c8be1bd

Please sign in to comment.