Skip to content

feat(chat): include browser timezone in page context for agent#596

Merged
amol-anand merged 4 commits into
mainfrom
timezone
Jul 16, 2026
Merged

feat(chat): include browser timezone in page context for agent#596
amol-anand merged 4 commits into
mainfrom
timezone

Conversation

@amol-anand

@amol-anand amol-anand commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

inject user's timezone to the agent context so the agent can use that for time-based tasks and schedule publish MCP tool as part of aem-agentic-plugins (that also has a get current time tool associated with it)

This PR needs to be merged in conjunction with the one in da-agent: adobe-rnd/da-agent#58

Lets the agent reason about dates/times relative to the user's actual
IANA time zone instead of assuming UTC or the server's zone.
@amol-anand
amol-anand requested review from hannessolo and mhaack July 13, 2026 20:24
@aem-code-sync

aem-code-sync Bot commented Jul 13, 2026

Copy link
Copy Markdown

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch.
In case there are problems, just click the checkbox below to rerun the respective action.

  • Re-sync branch
Commits

@mhaack

mhaack commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Do we have a use case for this? Where or in which situation would this be used?

@amol-anand

Copy link
Copy Markdown
Contributor Author

when using schedule publish, when the user says publish this page in 4 hours or tomorrow at 10 am, we currently have a tool to get the agent the current time, but then the agent then needs to ask the user for the timezone so it scheduled it accurately against the user's local time. So injecting the current user's timezone to the agent context would give it the information it needed without having to ask the user their current timezone.

@amol-anand
amol-anand merged commit fe5e950 into main Jul 16, 2026
3 checks passed
@amol-anand
amol-anand deleted the timezone branch July 16, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants