Fixed another error

If requested date was same day as today, but earlier in the day, 0 was returned