Skip to main content

ConvertTimezoneFromUTC

This Script is part of the Common Scripts Pack.#

Supported versions

Supported Cortex XSOAR versions: 6.0.0 and later.

Takes UTC and converts it to the specified timezone. Format must match the UTC date's format and output will be the same format. Can use in conjunction with ConvertDateToString

Script Data#


NameDescription
Script Typepython3
Tagstransformer, date

Inputs#


Argument NameDescription
valueTime in UTC in the format specified
formatFormat that the input expects, and output will format to (i.e "%Y-%m-%d %H:%M:%S")
timezoneTimezone to be converted to (i.e. 'US/Eastern', 'Etc/Greenwich', 'Canada/Eastern'). Review documentation on http://pytz.sourceforge.net/#helpers for more available timezones .

Outputs#


There are no outputs for this script.