Skip to content

Commit

Permalink
feat(loopback): add DateString type support
Browse files Browse the repository at this point in the history
  • Loading branch information
Walker Leite committed Jun 21, 2018
1 parent a05a9eb commit 5ba568d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion template/client/services/loopback.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
import {host, restApiRoot, port} from '~/server/config.json';
import axios from 'axios';
import {host, restApiRoot, port} from '~/server/config.json';
import {DateString} from 'loopback';

DateString.parse = function(dateString) {
const date = dateString.when || dateString;
return new DateString(date);
};

export {DateString};

const Storage = window.localStorage;

Expand Down

0 comments on commit 5ba568d

Please sign in to comment.