It's a timezone issue - timezones behind GMT will be pushed back a day by your code.
Try setting the "hours" to 12
. This will ensure that all timezones are on the same day.
So apparently UTC+14 is a thing. Try todaysDate.getUTC*
methods instead and be sure to include the hours/minutes/seconds.