Repository navigation
hanukkah, passover: start each holiday day at local sunset - #981
Merged
Merged
Conversation
The first-night dates were parsed as midnight UTC and compared by elapsed hours, so west of UTC everything rolled over the previous evening: the countdown ran a day short, the first candle appeared a night early, and "Hanukkah is over" showed during the eighth night. Compare the viewer's local calendar date against the first-night date instead, so the display changes at local midnight. The final day of the holiday keeps all eight candles lit. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The year was always the current calendar year, so a Hanukkah that started in late December (2024, 2027) switched to a countdown to next December on Jan 1 while candles were still being lit. Check whether the previous year's holiday is still running first. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A Hebrew-calendar day begins at sunset, so both apps now switch at sunset on the eve rather than at midnight. Sunset comes from a new optional Location setting; without one, 6 PM local is used. hanukkah: night N starts at sunset, the eighth night runs to sunset on the final day, and the eve shows "Hanukkah starts tonight!". passover: the date table is now the eve of the first seder for every year (it mixed eve and first-day dates; 2035 was a month early and 2036 a day early), the midnight-UTC elapsed-hours logic is gone, and the eve shows "Tonight" instead of "0 days". Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
jvivona
marked this pull request as draft
November 30, 2026 19:53
The classic panel stacked about 41px of rows into 32px, so the year never showed on the countdown and "Day N of 8" never showed during the holiday. Give 64x32 its own layouts: the year sits beside the Hebrew word, and the two Hebrew lines merge into one greeting. 2x and square renders are unchanged. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bah.. Realized my math was off on my sunset specific apps. also determined Hanukkah countdown (UTC time zone + January bridge issue) & Passover countdown were off as well. went ahead and fixed both of those.
Fixed Holiday Countdown to be able to handle local sunset / sunrise.
** NOTE ** if you don't select a location - it'll consider sunset at 6PM on your tronbyt server's timezone.
here's the stack:
The order each app uses to pick a timezone:
** Fixed layout for Passover as well **
==================================================================
Both apps decided the date from midnight-UTC timestamps and elapsed hours, so west of UTC they rolled over the previous evening. A Hebrew-calendar day actually begins at sunset, so this makes both apps switch at local sunset on the eve.
Both apps
sunrisemodule). With no location, or where the sun does not set, 6 PM local is used.hanukkah
passover
Testing
pixlet format,lintandcheckpass for both apps. Only the Passover 64x32 layout changed, sopassover.webpis the one preview image regenerated.🤖 Generated with Claude Code