The code script has been updated What changed
- Constants and formulas replaced with the ones from the WordPress plugin (
AHTA_MAX=9,AHSA_MAX=90,AHGO_MAX=90,AHDO_MAX=10,RAY_MAX=360, 80190 seconds per ray, etc.). computeRing()function:6 + floor((ray-1801)/360)– same as plugin.getCurrentTime()rewritten to exactly match the plugin’s logic (usingtotalSecondsand cascading rollovers).- State object now uses
ahta, ahsa, ahgo, ahdo, ray, timestamp(instead ofshu, godo, do). The digital display and the internal variables now correctly map to these names. - The canvas drawing and the rest of the page (gallery, journal, tools, login) are untouched.
- The save/load endpoints (
/save_time.php) should still work; they now store/retrieve the same fields as the plugin.
Now both mathor.ca (standalone) and the WordPress Kagodora plugin use identical time calculations. The next step is to ensure the Node.js app (the original) also matches; but for the PHP‑based mathor.ca, this update makes it consistent with your WordPress site.

