tasks.lastSuccess() function not working

import "influxdata/influxdb/tasks"

tasks.lastSuccess(orTime: 2020-01-01T00:00:00Z)

this returns ‘orTime’ value everytime. any idea why would it be?

I found some other users having the same issue too.