You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Stdlib: date()/idate()/gmdate() format B — Swatch beats wrong (ext/date/php_date.c) #12224
date('B'), idate('B'), and gmdate('B') must return Swatch Internet Time beats (000–999) per php-src/timelib. This VM uses VmDate::swatchBeat() with a weekday-offset formula ($seconds + $daysFromMonday * 86400) instead of php-src’s ((timestamp + 3600) % 86400) / 86.4 (Biel/UTC+1 beats).
php-src reference: ext/date/php_date.c — B format branch; timelib swatch beat helper.
PHP implementation target: ext/standard/VmDate.php (swatchBeat(), idateValue(), date()B case) — port php-src formula; no new C runtime.
Activity
PurHur commentedon Jun 26, 2026
claim: PHP Compiler STD Lib — batch (issues #12225, #12224, #12223)
Fix date/idate/gmdate format B Swatch beats (#12224). (#12227)
PurHur commentedon Jun 26, 2026
Merged via #12227. VM + JIT compliance green: date/idate/gmdate format B returns 708 for timestamp 1710000000.