Skip to content

Commit

Permalink
Use locale string for relative date tooltip (#364)
Browse files Browse the repository at this point in the history
Signed-off-by: James Phillips <[email protected]>
  • Loading branch information
jamesdphillips authored Mar 2, 2021
1 parent e4bb310 commit 13f0b26
Show file tree
Hide file tree
Showing 3 changed files with 225 additions and 239 deletions.
23 changes: 12 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,16 @@
"@octokit/plugin-throttling": "^2.4.0",
"@octokit/rest": "^16.23.2",
"@sensuapp/eslint-plugin": "^1.0.0",
"@storybook/addon-a11y": "^5.3.13",
"@storybook/addon-actions": "^5.3.13",
"@storybook/addon-knobs": "^5.3.13",
"@storybook/addon-notes": "^5.3.13",
"@storybook/addon-viewport": "^5.3.13",
"@storybook/addons": "^5.3.13",
"@storybook/client-api": "^5.3.13",
"@storybook/core-events": "^5.3.13",
"@storybook/react": "^5.3.13",
"@storybook/theming": "^5.3.13",
"@storybook/addon-a11y": "^5.3.21",
"@storybook/addon-actions": "^5.3.21",
"@storybook/addon-knobs": "^5.3.21",
"@storybook/addon-notes": "^5.3.21",
"@storybook/addon-viewport": "^5.3.21",
"@storybook/addons": "^5.3.21",
"@storybook/client-api": "^5.3.21",
"@storybook/core-events": "^5.3.21",
"@storybook/react": "^5.3.21",
"@storybook/theming": "^5.3.21",
"@testing-library/react": "^8.0.1",
"@types/autosuggest-highlight": "^3.1.1",
"@types/classnames": "^2.2.7",
Expand Down Expand Up @@ -220,7 +220,8 @@
"graphql": "14.4.2",
"graphql-config/**/graphql": "14.4.2",
"graphql-import/**/graphql": "14.4.2",
"serialize-javascript": "3.1.0"
"serialize-javascript": "3.1.0",
"prismjs": "1.23.0"
},
"graphQLSchemaRef": "4fbba86"
}
2 changes: 1 addition & 1 deletion src/lib/component/base/RelativeDate/RelativeDate.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class RelativeDate extends React.Component {
relativeDate = capitalizeStr(relativeDate);
}
return (
<Tooltip title={dateValue.toString()}>
<Tooltip title={dateValue.toLocaleString()}>
<time dateTime={dateTime} {...props}>
{relativeDate}
</time>
Expand Down
Loading

0 comments on commit 13f0b26

Please sign in to comment.