aboutsummaryrefslogtreecommitdiff
path: root/src/web/js/components/time.react.js
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-04-18 09:59:28 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-04-18 09:59:28 +0200
commit1ac457a21dff313387b612126234cba9f7b42467 (patch)
tree4838c86cf4ed7aa7bdf48ab02dd6e4bcc1fb497b /src/web/js/components/time.react.js
parentRemoved debug log. (diff)
downloadnewspipe-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.js6
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>);
},
});
bgstack15