ui: move get_datetime tool to frontend (#27255)

* ui: move get_datetime tool to frontend

* clarify docs

* server: drop the now unused ctime include

strftime() and gmtime_r() were the only users, both went away with the
get_datetime tool. Also make the renderer's catch inert: the browser
executor always emits JSON, so a non-JSON result is no longer a date to
display.

---------

Co-authored-by: Pascal <admin@serveurperso.com>
This commit is contained in:
Xuan-Son Nguyen
2026-08-17 14:33:55 +02:00
committed by GitHub
co-authored by Pascal
parent 805984d676
commit 666f8898a2
11 changed files with 81 additions and 64 deletions
@@ -33,7 +33,7 @@
if (typeof obj.result === 'string') return { dateString: obj.result.trim() };
}
} catch {
return { dateString: toolResultString.trim() };
// not JSON - nothing to show
}
return {};