Skip to content
This repository was archived by the owner on Jul 6, 2021. It is now read-only.

Commit dfaf8dc

Browse files
authored
fix: datetime now valid html datetime (#122)
1 parent 149a299 commit dfaf8dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const createTimeago = (opts = {}) => {
5353
'time',
5454
{
5555
attrs: {
56-
datetime: new Date(this.datetime),
56+
datetime: new Date(this.datetime).toISOString(),
5757
title:
5858
typeof this.title === 'string'
5959
? this.title

0 commit comments

Comments
 (0)