I have a dateInput
in my ui.R
as follows:
dateInput("asOfDateTime", label = "As Of", value = Sys.Date(), max = Sys.Date())
For 2015-05-15
, this gives the dateInput
a default value of 2015-05-14
.
However, when I run Sys.Date()
in the console on 2015-05-15
, I get the correct value: 2015-05-15
.
Why does Shiny give yesterday's date inside my app?