You mention you're using the *UTC version of this function. Is it possible the week already moved on to the next week in UTC time? Otherwise I can't really explain this, but usually these issues are related to something like that. What is the behavior if you use the localized versions of the function?