Add a compare function in the datetime handler similar to the below one:
NaiveDateTime.compare(otp_unit.data.expiry_datetime, NaiveDateTime.utc_now())
same for date and time and also one which match a :now which provide to get the date/time/datetime now and compare it
Add a compare function in the datetime handler similar to the below one:
NaiveDateTime.compare(otp_unit.data.expiry_datetime, NaiveDateTime.utc_now())same for
dateandtimeand also one which match a:nowwhich provide to get the date/time/datetime now and compare it