Math was off

This commit is contained in:
Gabriel Brown 2024-07-20 21:42:57 -05:00
parent 4aeaa68077
commit 74230dc8ab

View File

@ -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}