Skip to content

Commit

Permalink
Fix typo for relativeDate parameter in README
Browse files Browse the repository at this point in the history
  • Loading branch information
leplatrem authored Oct 21, 2019
1 parent afd1573 commit 1390c7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ format('2018-12-12');
format(1544666010224, 'zh_CN');

// format with locale and relative date
format(1544666010224, 'zh_CN', { relativeData: '2018-11-11' });
format(1544666010224, 'zh_CN', { relativeDate: '2018-11-11' });

// e.g.
format(Date.now() - 11 * 1000 * 60 * 60); // returns '11 hours ago'
Expand Down

0 comments on commit 1390c7b

Please sign in to comment.