Skip to content

Commit 1154ca7

Browse files
committed
Use Compat.@warn instead of warn
I missed this deprecation in Julia 0.7/1.0.
1 parent f9421af commit 1154ca7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/original.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ function parseto(::Type{DateTime}, str::AbstractString)
199199
# Check for ambiguous time
200200
if mapreduce(length, +, m.captures[2:4]) == 5
201201
if 0 <= rem(hr, 10) <= 5 && 1 <= rem(mn, 10) <= 5 # a 'shifted' parsing would also be valid
202-
warn("Header time ", str, " is ambiguous! Assigning the ambiguous digit to hours.")
202+
Compat.@warn("Header time ", str, " is ambiguous! Assigning the ambiguous digit to hours.")
203203
end
204204
end
205205
dt = d + Dates.Hour(hr) + Dates.Minute(mn) + Dates.Second(sc)

0 commit comments

Comments
 (0)