weekday counts Monday as 1, wherever you run it. That is the grammar’s numbering rather than the engine’s, and it has to be: asked plainly, one engine calls a Friday 5 and another calls it 4, and neither says anything is wrong.
13.1 The five parts
year, month, day, weekday and hour. Each one pulls a number out of a date, and each is named for what it returns.
hour is the fifth, and it wants a value that carries a time. A plain date has no hour in it, so on the dates above it answers zero rather than refusing.