Countdown widget for fof/forum-widgets-core
composer require linkrobins/countdown-widget
Then enable it in your forum's admin panel under Extensions.
A configurable countdown widget for Flarum 2.0, built as a widget for fof/forum-widgets-core. Same skeleton as linkrobins/html-widget and linkrobins/markdown-widget.
Renders a four-box countdown — days, hours, minutes, seconds — ticking down to an admin-configured moment. When it hits zero, shows a configurable "done" message. Optionally wraps the whole thing in a link.
fof/forum-widgets-core installed and enabledfas fa-rocket)UTC, America/New_York, Europe/London, Asia/Tokyo. There's a "Use my timezone" button that fills this with whatever your browser thinks the local zone isThe target time is stored as a "naive" wall-clock datetime (e.g. 2026-12-31T23:59) paired with a timezone (e.g. America/New_York). At render time, the widget converts that pair into an absolute UTC instant using the browser's Intl.DateTimeFormat API, which correctly handles daylight-saving transitions for the target date. Every visitor's browser then counts down to that single instant, so the displayed remaining-time stays consistent across the audience regardless of where each viewer is.
This avoids the most common countdown widget bug: "the admin set it for 11pm but my visitors in Tokyo see a different time."