Skip to main content

$reactions.setClientTimezone

The method sets the time zone for the current client.

Syntax

The method accepts one argument — a string designating the time zone:

$reactions.setClientTimezone("Europe/Berlin");
caution
The string designating the time zone must conform to the Java specification.

How to use

Information about the client time zone is used in the following cases:

  • Date and time entity recognition, particularly the Duckling system entities.
  • Scheduling events from the script by means of the $pushgate.createEvent method.
caution
If the time zone for the client is not set, the time zone on the Classifier tab in project settings is used by default.