Bug fixing

This commit is contained in:
Alexei Anoshenko 2024-12-08 20:47:43 +03:00
parent 848606a3be
commit 86e58ef33a
1 changed files with 1 additions and 1 deletions

View File

@ -316,7 +316,7 @@ func (picker *timePickerData) handleCommand(self View, command PropertyName, dat
switch command { switch command {
case "textChanged": case "textChanged":
if text, ok := data.PropertyValue("text"); ok { if text, ok := data.PropertyValue("text"); ok {
if value, err := time.Parse(timeFormat, text); err == nil { if value, ok := stringToTime(text); ok {
oldValue := GetTimePickerValue(picker) oldValue := GetTimePickerValue(picker)
picker.properties[TimePickerValue] = value picker.properties[TimePickerValue] = value
if value != oldValue { if value != oldValue {