Conversation
…lete corrupted state files - toICalDateTime(): bare 8-digit date (e.g. 20260307) is now expanded to full UTC datetime (20260307T000000Z) required by Sabre/DAV <c:time-range>, preventing HTTP 500 from list_events when from/to are date-only strings - loadJson(): after logging a parse-error warning, unlink the corrupted file so subsequent restarts see ENOENT (silent) instead of repeating the warning Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Gives the model a reliable time anchor before creating or listing calendar events, and to resolve scheduling ambiguities with the user. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ALE override Replace hardcoded 'sv-SE' locale with process.env.MCP_LOCALE so localTime uses the system locale when unset. Users can set MCP_LOCALE=sv-SE to restore the previous ISO-like format. Documents the new env var in CLAUDE.md. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
sv-SElocale fromget_local_time'slocalTimefield — it was a fragile trick to produceYYYY-MM-DD HH:MM:SSoutputtoLocaleString(undefined, ...)now uses the system locale by defaultMCP_LOCALE=sv-SE(or any BCP 47 tag) to restore the previous ISO-like format or pick any preferred localeMCP_LOCALEin the env vars table inCLAUDE.mdTest plan
cd mcp-server && npm testpassesnpm run lint— 0 errorsnpx prettier --check src/— all cleanMCP_LOCALE→localTimereflects system localeMCP_LOCALE=sv-SE→localTimeshows"2026-03-06 14:32:00"style output🤖 Generated with Claude Code