GlideDateTime - getLocalTime()

Gets the time in the user's time zone.

Table 1. Parameters
Name Type Description
Table 2. Returns
Type Description
GlideTime The time in the user's time zone.

Scoped equivalent

To use the getLocalTime() method in a scoped application, use the corresponding scoped method: Scoped GlideDateTime - getLocalTime().

var gdt = new GlideDateTime("2011-08-31 08:00:00");

Output: 1970-01-01 01:00:00