MDL-25504: Fix handling of scheduled time.

Was returning negative timestamps instead of rolling over the
next most significant field.