Skip to content

Commit

Permalink
Fix notification display time
Browse files Browse the repository at this point in the history
Prioritize the publication date over the creation date to accurately reflect possible scheduled notifications
  • Loading branch information
davelopez committed Apr 11, 2024
1 parent 6fbd2ab commit 4551d50
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function getNotificationExpirationTitle(notification: UserNotification) {
<div v-if="notification" class="notification-actions">
<div class="notification-actions-body">
<BBadge v-b-tooltip pill>
<UtcDate :date="notification.create_time" mode="elapsed" />
<UtcDate :date="notification.publication_time ?? notification.create_time" mode="elapsed" />
</BBadge>

<BButtonGroup class="notification-actions-buttons">
Expand Down

0 comments on commit 4551d50

Please sign in to comment.