From a3d2bea0cc291f466849f6659f56bc73592f2582 Mon Sep 17 00:00:00 2001 From: Pritimay Sarkar Date: Tue, 7 Nov 2023 05:55:03 +0530 Subject: [PATCH] add incubation time --- src/components/Registration.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/Registration.js b/src/components/Registration.js index b9bf9e6..52c4b4a 100644 --- a/src/components/Registration.js +++ b/src/components/Registration.js @@ -5,14 +5,14 @@ import axios from 'axios'; import './Registration.css'; function Registration() { - const [userId, setUserId] = useState("2808202300103ROOBHO"); + const [userId, setUserId] = useState("2808202300103SMIBLR"); const [counter, setCounter] = useState(0); const [message, setMessage] = useState(""); const [name, setName] = useState(""); const createUser = () => { setMessage(""); - const id = moment().unix() + counter + "ROOBHO"; + const id = moment().unix() + counter + "SMIBLR"; setCounter(counter + 1); axios({ method: 'post', @@ -39,6 +39,7 @@ function Registration() { "state": "Karnataka", "subCaste": "", "testStatus": false, + "incubationTime": moment().subtract('15', 'minutes').utcOffset("+05:30").format("YYYY-MM-DD HH:mm:ss"), "underMedication": false, "underTransfusion": false, "userImageURL": "https://hpos-prod.web.app/logo.png"