Skip to content

Commit

Permalink
Utiliser la balise HTML <time> là où est employé le composant de da…
Browse files Browse the repository at this point in the history
…te relative (#463)
  • Loading branch information
Thomas Parisot authored Nov 20, 2021
1 parent 19e3d23 commit a3bc24b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions front/gatsby/src/components/Article.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,9 @@ const ConnectedArticle = (props) => {
))}
by <span className={styles.author}>{props.owners.map((o) => o.displayName).join(', ')}</span>

<span className={styles.momentsAgo}>
<time dateTime={props.updatedAt} className={styles.momentsAgo}>
({formatTimeAgo(new Date(props.updatedAt))})
</span>
</time>
</p>

{expanded && (
Expand Down
4 changes: 2 additions & 2 deletions front/gatsby/src/components/Write/Versions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ const Versions = ({ article, versions, readOnly, version, revision, versionId, s
by <strong>{v.owner.displayName}</strong>{' '}
</span>
)}
{lastVersionId !== v._id && <span>at {new Date(v.updatedAt).formatMMDDYYYY()}</span>}
{lastVersionId === v._id && <span>{savedAgo}</span>}
{lastVersionId !== v._id && <time dateTime={v.updatedAt}>at {new Date(v.updatedAt).formatMMDDYYYY()}</time>}
{lastVersionId === v._id && <time dateTime={versions[0].updatedAt}>{savedAgo}</time>}
</p>
<ul className={styles.actions}>
{lastVersionId === v._id && !readOnly && (
Expand Down

0 comments on commit a3bc24b

Please sign in to comment.