Math was off
This commit is contained in:
parent
4aeaa68077
commit
74230dc8ab
@ -127,7 +127,7 @@ export const legacyUpdateEmployeeStatusByName = async (technicians: { name: stri
|
|||||||
for (const technician of technicians) {
|
for (const technician of technicians) {
|
||||||
const { name, status } = technician;
|
const { name, status } = technician;
|
||||||
const date = new Date();
|
const date = new Date();
|
||||||
const utcdate: Date = new Date(date.setHours(date.getUTCHours() - 9));
|
const utcdate: Date = new Date(date.setHours(date.getUTCHours() + 15));
|
||||||
const query = sql`
|
const query = sql`
|
||||||
UPDATE users
|
UPDATE users
|
||||||
SET status = ${status}, updatedAt = ${utcdate}
|
SET status = ${status}, updatedAt = ${utcdate}
|
||||||
|
Loading…
Reference in New Issue
Block a user