Skip to content

1.0.3

Choose a tag to compare

@geshmak-digital geshmak-digital released this 15 Jun 07:01
· 2 commits to main since this release

Fixes times displaying about half a day out (evening times shown as morning).

Hebcal returns each time as an ISO datetime with the location's UTC offset baked in (e.g. …T18:12:00+10:00). The old formatter ran that through date_i18n() with a raw timestamp, which rendered the UTC wall-clock instead of the local time — so a 6:12 pm candle lighting showed as ~8:12 am.

Times (candle lighting, havdalah, zmanim) and dates are now formatted with wp_date() honouring the offset embedded in Hebcal's response, so they display in the correct local time of the configured location — independent of the WordPress site timezone (which also means showing another city's zmanim is correct).