AbhishekGardade
Tera Sage

Hello Nivedita,

setTZ(TimeZone timeZone)
Sets the time zone of the GlideDateTime object to be the specified time zone.

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

Please mark as Correct Answer and Helpful, if applicable.
Thanks!
Abhishek Gardade
Hexaware Technologies

Thank you,
Abhishek Gardade