Skip to content

Commit

Permalink
Fix loic-sharma#490 - package last updated date (loic-sharma#491)
Browse files Browse the repository at this point in the history
Fixes loic-sharma#490 by using `Date.prototype.toLocaleDateString()` to format date values used to show when a package was last updated.
  • Loading branch information
euantorano authored May 3, 2020
1 parent 4aa6b21 commit f954443
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BaGet.UI/src/DisplayPackage/Versions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,6 @@ export class Versions extends React.Component<IVersionsProps, IVersionsState> {
private showFewerVersions = () => this.setState({ showAll: false });

private dateToString(date: Date): string {
return `${date.getMonth()+1}/${date.getDate()}/${date.getFullYear()}`;
return date.toLocaleDateString();
}
}

0 comments on commit f954443

Please sign in to comment.