Skip to content

Commit c3c51ad

Browse files
committed
tof sensor moving to chartjs
1 parent ce9d9f6 commit c3c51ad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

interface/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"jwt-decode": "^3.1.2",
1919
"lodash": "^4.17.21",
2020
"mime-types": "^2.1.29",
21-
"moment": "^2.29.1",
2221
"notistack": "^1.0.5",
22+
"parse-ms": "^2.1.0",
2323
"react": "^17.0.1",
2424
"react-day-picker": "^8.0.0-beta.17",
2525
"react-dom": "^17.0.1",

interface/src/project/DemoInformation.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class DemoInformation extends Component<DemoInformationProps, IState> {
100100
d.setMilliseconds(0);
101101
fetch(ENDPOINT_ROOT+"settime", {
102102
method: 'POST',
103-
body: JSON.stringify({'time':d.getDay() + "-" + (d.getMonth()+1) + "-" + d.getFullYear() + " " + d.getHours() + ":" + d.getMinutes()+ ":" + d.getSeconds() }),
103+
body: JSON.stringify({'time':d.getDate() + "-" + (d.getMonth()+1) + "-" + d.getFullYear() + " " + d.getHours() + ":" + d.getMinutes()+ ":" + d.getSeconds() }),
104104
// body: toInteger(new Date().getTime()/1000).toString(),
105105
headers: new Headers({
106106
'Content-Type': 'application/json'

0 commit comments

Comments
 (0)