Skip to content

fix: wrap LoadLocation error in date() builtin#931

Merged
antonmedv merged 1 commit intoexpr-lang:masterfrom
thevilledev:fix/oss-fuzz-485071714
Feb 18, 2026
Merged

fix: wrap LoadLocation error in date() builtin#931
antonmedv merged 1 commit intoexpr-lang:masterfrom
thevilledev:fix/oss-fuzz-485071714

Conversation

@thevilledev
Copy link
Contributor

When date() is called with an invalid timezone string like ".", time.LoadLocation can return raw OS-level errors such as "is a directory". Replace the raw error with a consistent "unknown time zone" message to improve error clarity and match the fuzz test's known-error skip patterns.

Relates to #930.

When date() is called with an invalid timezone string like ".",
time.LoadLocation can return raw OS-level errors such as
"is a directory". Replace the raw error with a consistent
"unknown time zone" message to improve error clarity and match
the fuzz test's known-error skip patterns.

Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>
@antonmedv antonmedv merged commit 3abfc80 into expr-lang:master Feb 18, 2026
20 checks passed
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

Comments