getDayOfWeek() confusion

getDayOfWeek() confusion

I am having some trouble with the getDayOfWeek() function.
 
In the "set variable" screen the "tip" for getDayOfWeek() states that Sunday is 0, Monday is 1, etc.
 
However, in the documentation at http://zohocreator.wiki.zoho.com/Built-in-Functions.html#date, it says that Sunday is 1, Monday is 2, etc.
 
However, when I try to use the function in my HTML view, I am getting Sunday is 6, Monday is 7, Tuesday is 1, etc.