Skip to content

Commit

Permalink
fix created label
Browse files Browse the repository at this point in the history
  • Loading branch information
ogewan committed Aug 1, 2023
1 parent 56ec66e commit 3b04798
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/widgets/cell_detail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,9 @@ export class CellDetailDialog extends Overlay {
const created = document.createElement(`${i ? 'td' : 'th'}`);
const user = document.createElement(`${i ? 'td' : 'th'}`);
const tagTD = document.createElement(`${i ? 'td' : 'th'}`);
created.innerText =
(new Date(tag.created)).toLocaleString('en-US', {hour12: false});
created.innerText = i ?
(new Date(tag.created)).toLocaleString('en-US', {hour12: false}) :
tag.created;
user.innerText = tag.user_name;
tagTD.innerText = tag.tag;
row.append(created, tagTD, user);
Expand Down

0 comments on commit 3b04798

Please sign in to comment.