Skip to content

Commit

Permalink
Year 2000 for 00-40
Browse files Browse the repository at this point in the history
  • Loading branch information
dimfishr authored and Tieske committed Jul 18, 2021
1 parent 58f277d commit e309bbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/date.lua
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@
elseif sw("^(%d+)[/\\%s,-]?%s*") then --print("$Digits")
x, c = tonumber(sw[1]), len(sw[1])
if (x >= 70) or (m and d and (not y)) or (c > 3) then
sety( x + ((x >= 100 or c>3)and 0 or 1900) )
sety( x + ((x >= 100 or c>3) and 0 or x<41 and 2000 or 1900) )
else
if m then setd(x) else m = x end
end
Expand Down

0 comments on commit e309bbd

Please sign in to comment.