I am using dash for my dashboard and is deployed on AWS Elastic Beanstalk.
There is an issue in Datepicker.I am using max_date_allowed=dt.date(dt.now())
So the day the app is deployed everything worked fine. But from the next day, the max_date_allowed is stuck to the date, the app is deployed and we can't choose date beyond the date the app is deployed.
It works again only if we choose in the environment, restart app server(s) from the action menu.
What could be the issue here?
Below is the date picker snippet we used.
dcc.Tabs([
dcc.Tab(label='DDR by Date (Default DDR - Last Day)', value='tab-1', children=[
dcc.DatePickerSingle(
id='my-date-picker-single',
min_date_allowed=dt(2020, 1, 18),
max_date_allowed=dt.date(dt.now()),
initial_visible_month=dt.date(dt.now()),
placeholder='Select a date',
display_format='DD/MM/YYYY'
),
html.Button(id='submit-button', n_clicks=0, children='Submit'),
html.Div(id='output-container-date-picker-single')
]),