Skip to content

Commit

Permalink
Update XLDates.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
heetbeet committed Apr 5, 2024
1 parent 567069d commit 4d047a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/XLDates.jl
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ end

# Conversions
function convert(::Type{XLDate{T₁}}, n::XLDate{T₂}) where {T₁} where {T₂}
return DateTime(convert(T₁, n.val))
return XLDate(convert(T₁, n.val))
end
convert(::Type{DateTime}, n::XLDate) = DateTime(n)
convert(::Type{XLDate}, n::DateTime) = XLDate(n)
Expand Down

0 comments on commit 4d047a3

Please sign in to comment.