We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a05a9eb commit 5ba568dCopy full SHA for 5ba568d
template/client/services/loopback.js
@@ -1,5 +1,13 @@
1
-import {host, restApiRoot, port} from '~/server/config.json';
2
import axios from 'axios';
+import {host, restApiRoot, port} from '~/server/config.json';
3
+import {DateString} from 'loopback';
4
+
5
+DateString.parse = function(dateString) {
6
+ const date = dateString.when || dateString;
7
+ return new DateString(date);
8
+};
9
10
+export {DateString};
11
12
const Storage = window.localStorage;
13
0 commit comments