Skip to content

Commit

Permalink
Adding Luxon functions
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbarry committed Nov 3, 2023
1 parent a1e035f commit 8b09cb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/js/splash/notifScheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ const scheduleNotifs = (scheme, notifTimes) => {
isScheduling = true;
const localeCode = i18next.resolvedLanguage;
const nots = notifTimes.map((n) => {
const nDate = n.toDate();
const seconds = nDate.getTime() / 1000;
const nDate = n.toISO();
const seconds = nDate.ts / 1000;
return {
id: seconds,
title: scheme.title[localeCode],
Expand Down

0 comments on commit 8b09cb3

Please sign in to comment.