You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having an issue when calling updateAirDateInput(). The input datetime is never the one returned by the widget (through input$dateInput). This seems to happen only when the shiny server is running at a different timezone as the client. On the server side the timezone is picked through Sys.timezone()here and then that date is shifted to the client timezone. If both client and server timezones are the same they will coincide, but if they don't, the incorrect shifting will happen. A quick way to test this issue is by calling something like this:
Which should keep the value constant, but if the server and client timezones are different, the value will keep shifting the datetime at every call. Different timezones between server and client can be tested locally by running a rocker image with the app, which is set to UTC by default. The shiny client will pick your local timezone from the browser.
The text was updated successfully, but these errors were encountered:
hdmm3
changed the title
updateAirDateInput() struggling when server and client timezones differ
updateAirDateInput() behaviour inconsistent when server and client timezones differ
May 15, 2024
I'm having an issue when calling
updateAirDateInput()
. The input datetime is never the one returned by the widget (through input$dateInput). This seems to happen only when the shiny server is running at a different timezone as the client. On the server side the timezone is picked throughSys.timezone()
here and then that date is shifted to the client timezone. If both client and server timezones are the same they will coincide, but if they don't, the incorrect shifting will happen. A quick way to test this issue is by calling something like this:Which should keep the value constant, but if the server and client timezones are different, the value will keep shifting the datetime at every call. Different timezones between server and client can be tested locally by running a rocker image with the app, which is set to UTC by default. The shiny client will pick your local timezone from the browser.
Originally posted by @hdmm3 in #643 (comment)
The text was updated successfully, but these errors were encountered: