I’m having some trouble tracking down a solution to something with the slider, as I see a difference in what is displayed for min_value, max_value, and two default values between a local instance and a deployed app.
Here’s an example I adopted from my code, based on the range time slider example in the API reference:
import streamlit as st
from datetime import time
minTime = time(6,00)
maxTime = time(23,00)
defaultMin = time(10,00)
defaultMax = time(20,00)
st.slider('Time of day?', min_value=minTime, max_value=maxTime, value=(defaultMin, defaultMax), format="LT")
Expected/locally observed output:
Observed output (via published app on streamlist sharing):
So the slider appears to be displaying all 4 times off 5 hours from what they are set to. When returning the tuple from the slider contain the selected values, they are correct (not off by 5 hours). Is this a timezone thing? I’m just puzzled by it returning correct values but displaying in a manner that is unanticipated. Thanks!
streamlit==0.82.0
python==3.8.2
OS X 11.3.1
Assorted browsers: Chrome 90, Safari 14.1, etc.