Learn R Programming

teal (version 0.15.2)

get_client_timezone: Get client timezone

Description

User timezone in the browser may be different to the one on the server. This script can be run to register a shiny input which contains information about the timezone in the browser.

Usage

get_client_timezone(ns)

Value

(shiny) input variable accessible with input$tz which is a (character) string containing the timezone of the browser/client.

Arguments

ns

(function) namespace function passed from the session object in the shiny server. For shiny modules this will allow for proper name spacing of the registered input.