[BUG]Datepicker displayed value is not updating correctly
See original GitHub issueHi ! First of all thanks for the amazing work.
I just updated bokeh to 1.3.0 and noticed that the displayed DatePicker value is not updating correctly after changing it manually. Basically, the underlying value responds well but the displayed value corresponds to the selected day - 1 day. So if you click on 30th July 2019, the displayed value is 29th July 2019. The displayed value updates correctly only if you select the 30th July a 2nd time.
I just checked with 1.2.0 and we don’t seem to have this issue (tested on chrome, Edge and firefox).
Minimal Example code:
from bokeh.models import DatePicker
from bokeh.io import curdoc
import datetime
def callback(attr, old, new):
print('old:', old, 'new:', new)
date_picker = DatePicker(value=datetime.date.today())
date_picker.on_change('value', callback)
curdoc().add_root(date_picker)
Thanks and sorry if it’s not the right way to submit an issue, it’s my first time doing this.
Software version info: Bokeh - 1.3.0 Python - 3.7.3 Chrome - 75.0.3770.142
Issue Analytics
- State:
- Created 4 years ago
- Comments:19 (16 by maintainers)
Top Results From Across the Web
jQuery datepicker does not update value properly
I made a JSFiddle to show the problem. When you pick a date the span updates and shows the value of the datepicker....
Read more >DatePicker does not update the value in view - Telerik
The error occurs both when I am using a date object [1] and a formatted date string [2] for setting the value.
Read more >DateTimePicker Control Broken After Upgrade to Windows 10 ...
It includes a DateTimePicker control. After upgrading to Windows 10 Creator Edition, the date is not displayed properly in the text portionof the...
Read more >Default Time Not Updating Correctly
For this datacard in my app, I have it set so that by default, the current date/time of the user using this, will...
Read more >Date picker label not updating when setting the date ... - GitHub
This is a bug as it should definitely update the label. It appears that not just setDate is broken but even the options....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If you can help me get set up I’d be happy to help test.
NOTE: #9509 re-fixes this and many other datepicker issues (as well as adds selenium tests) for 2.0 but note that the implementation was switched to Flatpickr, and also now date values can only be expressed as ISO date strings, or
datetime.date
and nothing else (in particular no more datetime values which caused endless trouble with time zones)