Hello,
I have a problem with Dash Datepicker Input on my app. My app is in Docker on VPS, and it won’t update dynamic value such as “datetime.date.today()”. This is what I do before
dcc.DatePickerRange(
min_date_allowed=datetime.date(2013, 1, 1),
max_date_allowed=datetime.date.today(),
# initial_visible_month=datetime.date.today(),
start_date=datetime.date.today()-datetime.timedelta(days=14),
end_date=datetime.date.today()
)
When I run the docker on 14th May, as an example, the end_date of datepicker is in true value (14th May). But, when I open the app tomorrow without restarting the docker, it still shows ‘14th May’ instead of 15th May.
Does anyone know how to solve this problem? Can I define values from app.callback and trigger the “datetime.date.today()” when load the page and use them as a value in “start_date” and “end_date”? Thanks.