We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f4175d commit 6a84b9cCopy full SHA for 6a84b9c
projects/ngx-resgrid-apps-shared/src/lib/services/utils.service.ts
@@ -371,9 +371,11 @@ export class UtilsService {
371
token = 'ago',
372
listChoice = 1;
373
374
- if (seconds === 0) {
+ // If it's within a minute of the current date lets just say "Just now" as it messes up Angular checking for changes
375
+ if (seconds < 60 && seconds > -60) {
376
return 'Just now';
377
}
378
+
379
if (seconds < 0) {
380
seconds = Math.abs(seconds);
381
token = 'from now';
0 commit comments