diff --git a/assets/demoApp.gif b/assets/demoApp.gif new file mode 100644 index 0000000..dac1c66 Binary files /dev/null and b/assets/demoApp.gif differ diff --git a/components/Main.js b/components/Main.js index e59c6df..2413cbe 100644 --- a/components/Main.js +++ b/components/Main.js @@ -42,7 +42,6 @@ export default class Main extends Component { } componentDidMount() { this.makeQuery(''); - console.log(this); } renderRow = (article, sId, rId) => { const { navigator } = this.props; diff --git a/utils/articleDateParser.js b/utils/articleDateParser.js index efb5728..4765214 100644 --- a/utils/articleDateParser.js +++ b/utils/articleDateParser.js @@ -1,9 +1,9 @@ export default function parseArticleDate(date){ -return new Date(date).toLocaleString('en-GB', +return new Date(date).toLocaleString('en', { year: 'numeric', month: '2-digit', day: '2-digit', hour: '2-digit', - minute:'2-digit'}) + minute:'2-digit'}).slice(0, -8) }