Skip to content

Commit

Permalink
more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jho44 committed Aug 8, 2023
1 parent ad77dff commit 8c4f6e3
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/lib/server/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -442,10 +442,19 @@ async function saveUser(
d.setDate(diff);
d.setHours(notifHr);
d.setMinutes(notifMin);
console.log({
date: d.getDate(),
notifFreq,
timeZone,
diff,
notifStartDay,
notifHr,
notifMin
});
console.log('local date', d);

// convert to UTC in the end
const utcReminderDate = toUTC(d, timeZone);
console.log('local date', d);
console.log('utc date', utcReminderDate);
const baseUser = {
locale,
Expand Down

0 comments on commit 8c4f6e3

Please sign in to comment.