Popular things in Japan (Ghibli Museum, small sushi counters, theatre tickets for overseas buyers) sell out minutes after a sale opens. Each venue states its opening as a plain-language rule, and if you live outside Japan you have to turn that rule into a time on your own clock. I keep a free calendar of these openings, and almost every rule fits one of three shapes. Here they are as small, dependency-free JS functions, plus the one bug that cost me an evening.

The three shapes

Rule as published Shape
Ghibli Museum: 10th of every month, 10:00 JST, for the next month monthly, fixed day
Ginza Shinohara (OMAKASE): 25th of every month, 00:00 JST monthly, fixed day (midnight!)
Iida Shoten (OMAKASE): every Sunday 16:00 JST weekly
ufotable Cafe lottery: every Wednesday 18:00 JST weekly
Takarazuka overseas sale: 10:00 JST on the first Tuesday after the Japanese sale date (Wednesday if that Tuesday is a holiday) relative to another date

Japan has no daylight saving time, so JST is UTC+9 all year. That means you don't need a timezone library: shift by 9 hours, do calendar maths in UTC, shift back.

The code

// Next opening for "day D of each month at HH:MM JST", as a UTC Date. // JST is UTC+9 all year (no DST), so we can do this without a tz library. function nextMonthly(day, hh, mm, now = new Date()) { for (let i = 0; i < 3; i++) { const jstNow = new Date(now.getTime() + 9 * 3600e3); const y = jstNow.getUTCFullYear(), m = jstNow.getUTCMonth() + i; const t = new Date(Date.UTC(y, m, day, hh - 9, mm)); // JST wall time -> UTC if (t > now) return t; } } // Next opening for "every <weekday> at HH:MM JST" (0 = Sunday). function nextWeekly(weekday, hh, mm, now = new Date()) { const jst = new Date(now.getTime() + 9 * 3600e3); for (let i = 0; i < 8; i++) { const d = new Date(Date.UTC(jst.getUTCFullYear(), jst.getUTCMonth(), jst.getUTCDate() + i)); if (d.getUTCDay() !== weekday) continue; const t = new Date(Date.UTC(d.getUTCFullYear(), d.getUTCMonth(), d.getUTCDate(), hh - 9, mm)); if (t > now) return t; } } // "First Tuesday after the Japanese sale date; Wednesday if that Tuesday is a holiday." function firstTuesdayAfter(jpSaleYmd, holidays = new Set()) { const [y, m, d] = jpSaleYmd.split("-").map(Number); let t = new Date(Date.UTC(y, m - 1, d + 1)); while (t.getUTCDay() !== 2) t = new Date(t.getTime() + 86400e3); const ymd = t.toISOString().slice(0, 10); if (holidays.has(ymd)) t = new Date(t.getTime() + 86400e3); return t.toISOString().slice(0, 10); } // RRULE for "day D at HH:MM JST", written in UTC. The trap: before 09:00 JST // the UTC date is the day before, so BYMONTHDAY shifts too. function monthlyRrule(day, hh, mm) { let uh = hh - 9, ud = day; if (uh < 0) { uh += 24; ud = day - 1 || -1; } // day 1 -> last day of previous month return { time: String(uh).padStart(2, "0") + String(mm).padStart(2, "0") + "00Z", rrule: "FREQ=MONTHLY;BYMONTHDAY=" + ud }; } 

Run it with "now" = 29 Nov 2026 13:00 JST:

ghibli 2026-12-10T01:00:00Z (10 Dec 10:00 JST) shinohara 2026-12-24T15:00:00Z (25 Dec 00:00 JST) iida 2026-11-29T07:00:00Z (today 16:00 JST) ufotable 2026-12-02T09:00:00Z (Wed 18:00 JST) takarazuka 2027-01-12 (JP sale Sat 9 Jan; Mon 11 Jan is a holiday, the Tuesday is not) 

The bug: midnight in Tokyo is yesterday in UTC

My first .ics feed for the "25th at 00:00 JST" restaurant used FREQ=MONTHLY;BYMONTHDAY=25 with a UTC time of 15:00. Every reminder fired a full day late, because 00:00 JST on the 25th is 15:00 UTC on the 24th. Anything that opens before 09:00 JST moves to the previous UTC date, so BYMONTHDAY has to move with it. That is what monthlyRrule does. And when the rule says "the 1st", the previous UTC day is the last day of the month before, which RRULE writes as BYMONTHDAY=-1 (there is no day 0).

The other way to fix it is DTSTART;TZID=Asia/Tokyo:... with a VTIMEZONE block. That works in Google and Apple Calendar, but writing UTC times plus the shifted BYMONTHDAY kept my feeds valid in every client I tested, with no VTIMEZONE needed.

Why not one generic rule engine?

Because the rules are written for people, not parsers. "First Tuesday after, Wednesday if that Tuesday is a holiday" needs a holiday list. "Reported 18:00 JST, the official site gives only the date" needs a human note next to the event. I keep each rule as data (the sentence as published, the source URL, the date I last checked it) and generate the feed from that, so when a venue changes its time (PokePark Kanto moved from 20:00 to 19:00 JST this autumn) one field changes and every subscriber's calendar updates.

If you just want the dates without the code, the calendar is here, with subscribable .ics feeds and times converted to your zone: https://hodoyoku.pages.dev/tools/japan-ticket-drops-calendar