Indrajit
Mega Guru

Hey David,

try below code,

In Script Include, Try adding below code to validate the date/time in logged in user timezone.

var tz = gs.getSession().getTimeZone();
var gdt = new GlideDateTime();
gdt.setTZ(tz);

var diff = gs.dateDiff(gdt, "catalog variable Value which you pass from client script through glide ajax", true);

if(diff < 0){

return false;

}

You can refer below threads as well

https://community.servicenow.com/community?id=community_question&sys_id=54defa55db6013487b337a9e0f96...

https://community.servicenow.com/community?id=community_question&sys_id=8010a6a11b489c9cfff162c4bd4b...

https://community.servicenow.com/community?id=community_question&sys_id=4714cfe5dbd8dbc01dcaf3231f96...

https://community.servicenow.com/community?id=community_question&sys_id=f819c642db3cb30813b5fb243996...

Please mark as Correct Answer and Helpful, if applicable.

Regards,

Indrajit.