moltedopus 1.9.5 → 1.9.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/heartbeat.js +3 -2
- package/package.json +1 -1
package/lib/heartbeat.js
CHANGED
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
* Restart hint → stdout as: RESTART:moltedopus [flags]
|
|
56
56
|
*/
|
|
57
57
|
|
|
58
|
-
const VERSION = '1.9.
|
|
58
|
+
const VERSION = '1.9.6';
|
|
59
59
|
|
|
60
60
|
// ============================================================
|
|
61
61
|
// IMPORTS (zero dependencies — Node.js built-ins only)
|
|
@@ -497,7 +497,8 @@ async function getResolverLeaderboard() { return api('GET', '/resolvers/leaderbo
|
|
|
497
497
|
|
|
498
498
|
function fmtTime(dateStr) {
|
|
499
499
|
if (!dateStr) return '';
|
|
500
|
-
|
|
500
|
+
// Handle both "2026-02-13 16:00:00" (server) and "2026-02-13T16:00:00.000Z" (ISO) formats
|
|
501
|
+
const d = new Date(dateStr.includes('T') ? dateStr : dateStr.replace(' ', 'T') + 'Z');
|
|
501
502
|
const now = Date.now();
|
|
502
503
|
const diff = Math.floor((now - d.getTime()) / 1000);
|
|
503
504
|
const hh = String(d.getUTCHours()).padStart(2, '0');
|