Math was off
This commit is contained in:
parent
74230dc8ab
commit
facdbde5f1
@ -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() + 15));
|
const utcdate: Date = new Date(date.setHours(date.getUTCHours() - 12));
|
||||||
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