convert dates to seconds before comparison in unblock script