question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG]Datepicker displayed value is not updating correctly

See original GitHub issue

Hi ! 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:closed
  • Created 4 years ago
  • Comments:19 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
madkoppcommented, Sep 16, 2019

If you can help me get set up I’d be happy to help test.

0reactions
bryevdvcommented, Jan 17, 2020

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)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found