Skip to content

Commit

Permalink
fix: notification text inaccuracy
Browse files Browse the repository at this point in the history
  • Loading branch information
sahej-dev committed Oct 22, 2022
1 parent f482194 commit 8a6ce34
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/bloc/notifications_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -368,10 +368,12 @@ class NotificationsBloc
date = 'on ${formatDate(contest.startDateTime, [D])}';
}

final String duration =
'in ${prettyDuration(contest.startDateTime.difference(now), abbreviated: false)}';
final String time = 'at ${formatDate(
contest.startDateTime.toLocal(),
[hh, ':', nn, ' ', am],
)}';

return '\'${contest.name}\' on ${contest.judge.name} '
'starting $date $duration';
'starting $date $time';
}
}

0 comments on commit 8a6ce34

Please sign in to comment.