The default time zone for the @node and @thingsdb scopes has been set to UTC and collections will inherit the time zone from the @thingsdb scope so they also have UTC as their default as long as the @thingsdb scope is not changed. This function can be used to change the time zone for a scope.
See time_zones_info() for a list of all available timezones.
datetime().zone(); to view the current time zone in a scope.
This function generates a change.
|scope||str (required)||Specify the scope to change the time zone for.|
|zone||str (required)||New time zone.|
nil if successful.
This code changes the password for user admin:
// Change the time zone to Europe/Amsterdam set_time_zone('//stuff', 'Europe/Amsterdam');
Return value in JSON format