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.
get_client_timezone(ns)
(shiny
) input variable accessible with input$tz
which is a (character
)
string containing the timezone of the browser/client.
(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.