Skip to content

[V1.3.3] CraftBot cannot determine the current date #303

@makiroll1125

Description

@makiroll1125

What happened:

  • CraftBot was unable to determine the date and time. This is important because it can affect time-related tasks and integrations (ex. "fill my Google calendar with these events for today" will set the schedule on the wrong date)
    What I expected:
  • CraftBot should know the current date and time or be able to reasonably cheaply retrieve it for relevant tasks
    Steps to reproduce:
  1. Ask CraftBot for the current date/time
  2. or Ask CraftBot to create an event on Google Calendar for today
    Environment: (browser, OS, server, version/commit)
    Browser: Edge
    OS: Windows 11
    Version: improvement/generate-image (up to date with V1.3.3)
    Logs / screenshots:
Image

2026-06-01 12:21:17.105 | INFO | agent_core.core.impl.llm.interface:_generate_response_with_session_sync:780 - [LLM SESSION] task=893d44 call_type=LLMCallType.ACTION_SELECTION | user=03:21:16 [agent reasoning]: Python execution failed, will use system shell date command with explicit Asia/Tokyo timezone which is more reliable for this simple task.
03:21:16 [action_start]: Running action run_shell with input: {
"command": "TZ='Asia/Tokyo' date '+%A, %d %B %Y | %Y-%m-%d | %H:%M:%S'",
"_session_id": "893d44"
}.
03:21:16 [action_end]: Action run_shell completed with output: {
"status": "error",
"stdout": "",
"stderr": "'TZ' is not recognized as an internal or external command,\noperable program or batch file.",
"return_code": 255,
"message": "",
"pid": null
}.

2026-06-01 12:21:19.841 | INFO | agent_core.core.impl.llm.interface:_generate_response_with_session_sync:1154 - [LLM RECV] {
"reasoning": "Running on Windows system, use PowerShell native command to get date correctly in Asia/Tokyo timezone.",
"actions": [
{
"action_name": "run_shell",
"parameters": {
"command": "powershell -Command "Get-Date -TimeZone 'Tokyo Standard Time' -Format 'dddd, dd MMMM yyyy | yyyy-MM-dd | HH:mm:ss'""
}
}
]
}

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions