[DateTimeWidget] add key_events and fix setting dates (#13214)
Some checks failed
macos / macOS 13 x86-64 🔨15.2 🎯10.15 (push) Has been cancelled
macos / macOS 14 ARM64 🔨15.4 🎯11.0 (push) Has been cancelled

This commit is contained in:
David
2025-02-27 19:12:03 +00:00
committed by GitHub
parent b758d7cd5e
commit 42fd1e86bf
2 changed files with 102 additions and 4 deletions

View File

@@ -192,7 +192,7 @@ if Device:setDateTime() then
day = curr_day,
ok_text = _("Set date"),
title_text = _("Set date"),
info_text = _("Date is in years, months and days."),
info_text = _("The date format is year, month, day."),
callback = function(time)
now_t = os.date("*t")
if Device:setDateTime(time.year, time.month, time.day, now_t.hour, now_t.min, now_t.sec) then