Skip to content

Commit

Permalink
Update security-monitor.component.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ndkhanh-axonivy committed Dec 17, 2024
1 parent eeb6abb commit cfe9240
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,7 @@ export class SecurityMonitorComponent {
formatCommitDate(date: string): string {
const now = new Date().getTime();
const targetDate = new Date(date).getTime();
console.log('now ' + now);
console.log('targetDate ' + targetDate);
const diffInSeconds = Math.floor((now - targetDate) / 1000);
console.log(diffInSeconds);

if (diffInSeconds < 60) {
return 'just now';
Expand Down

0 comments on commit cfe9240

Please sign in to comment.