Fix daily puzzle rotation timezone issue

- Added lib/dateUtils.ts for consistent timezone handling
- Updated app/page.tsx and app/api/daily/route.ts to use Europe/Berlin timezone
- Updated lib/gameState.ts to sync client-side daily check with server time
- Exposed TZ env var to client in next.config.ts
This commit is contained in:
Hördle Bot
2025-11-22 00:44:14 +01:00
parent 3e0fa430a3
commit 4f8524c286
6 changed files with 66 additions and 10 deletions

View File

@@ -9,6 +9,9 @@ const nextConfig: NextConfig = {
bodySizeLimit: '50mb',
},
},
env: {
TZ: process.env.TZ || 'Europe/Berlin',
},
async headers() {
return [
{