GlideSystem - nowNoTZ()

Gets the current date and time in UTC format.

Table 1. Parameters
Name Type Description
Table 2. Returns
Type Description
String The current UTC date time

// When the user password changes then set the u_password_last_reset field
// to now so we know when to force another update
var gr = new GlideRecord("sys_user");
if (gr.get(event.parm1.toString())) {
    // Do something based on the Password Changing
    gs.log("The user password changed so do something else...");
    gr.u_password_last_reset = gs.nowNoTZ();