Skip to content

fix: accept any scalar time in transform - #47

Merged
Beforerr merged 1 commit into
mainfrom
timestamp
Oct 2, 2026
Merged

Beforerr merged 1 commit into
mainfrom
timestamp

Conversation

@Beforerr

@Beforerr Beforerr commented Oct 2, 2026

Copy link
Copy Markdown
Member

prepare_time only had a scalar ::DateTime method, so transform(t, pos, ...) threw a MethodError for scalar Timestamp (Durations.jl / Julia 1.14 Dates) or String times. The scalar fallback now wraps any value in a vector, matching decompose_time, which already converts elements to DateTime.

@codecov

codecov Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/utils.jl 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@Beforerr
Beforerr merged commit 4facb85 into main Oct 2, 2026
4 of 5 checks passed
@Beforerr
Beforerr deleted the timestamp branch October 2, 2026 21:05
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.

1 participant