From 62ca73b2ac63ae5eef9987ad95285245432b6067 Mon Sep 17 00:00:00 2001 From: andupetcu <47487320+andupetcu@users.noreply.github.com> Date: Sat, 20 Sep 2025 23:48:05 +0300 Subject: [PATCH] Fix relativeTime calls in prayers page by adding required now parameter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- app/[locale]/prayers/page.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/[locale]/prayers/page.tsx b/app/[locale]/prayers/page.tsx index 5db473d..9d55f08 100644 --- a/app/[locale]/prayers/page.tsx +++ b/app/[locale]/prayers/page.tsx @@ -170,10 +170,10 @@ export default function PrayersPage() { const hours = Math.floor(minutes / 60) const days = Math.floor(hours / 24) - if (days > 0) return f.relativeTime(-days, 'day') - if (hours > 0) return f.relativeTime(-hours, 'hour') - if (minutes > 0) return f.relativeTime(-minutes, 'minute') - return f.relativeTime(0, 'second') + if (days > 0) return f.relativeTime(-days, 'day', { now }) + if (hours > 0) return f.relativeTime(-hours, 'hour', { now }) + if (minutes > 0) return f.relativeTime(-minutes, 'minute', { now }) + return f.relativeTime(0, 'second', { now }) } return (