diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-04-18 09:59:28 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-04-18 09:59:28 +0200 |
commit | 1ac457a21dff313387b612126234cba9f7b42467 (patch) | |
tree | 4838c86cf4ed7aa7bdf48ab02dd6e4bcc1fb497b /src/web/js/components/time.react.js | |
parent | Removed debug log. (diff) | |
download | newspipe-1ac457a21dff313387b612126234cba9f7b42467.tar.gz newspipe-1ac457a21dff313387b612126234cba9f7b42467.tar.bz2 newspipe-1ac457a21dff313387b612126234cba9f7b42467.zip |
handling date formating server side
Diffstat (limited to 'src/web/js/components/time.react.js')
-rw-r--r-- | src/web/js/components/time.react.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/web/js/components/time.react.js b/src/web/js/components/time.react.js index 8b4d47d9..c293e638 100644 --- a/src/web/js/components/time.react.js +++ b/src/web/js/components/time.react.js @@ -1,13 +1,11 @@ var React = require('react'); -var ReactIntl = require('react-intl'); var JarrTime = React.createClass({ - mixins: [ReactIntl.IntlMixin], - propTypes: {stamp: React.PropTypes.number.isRequired, + propTypes: {stamp: React.PropTypes.string.isRequired, text: React.PropTypes.string.isRequired}, render: function() { return (<time dateTime={this.props.text} title={this.props.text}> - {this.formatRelative(this.props.stamp)} + {this.props.stamp} </time>); }, }); |