get_client_timezone: Get client timezone

View source: R/utils.R

get_client_timezoneR Documentation

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)

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.

Value

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


teal documentation built on May 29, 2024, 10:11 a.m.