Skip to content

Commit 4c48a0a

Browse files
committed
Fixes the problem that after calling DatePicker.setDate() changing the time has no effect
See https://www.woltlab.com/community/thread/308863-datepicker-setdate-nicht-vollständig/
1 parent fb80ba9 commit 4c48a0a

File tree

2 files changed

+2
-0
lines changed
  • ts/WoltLabSuite/Core/Date
  • wcfsetup/install/files/js/WoltLabSuite/Core/Date

2 files changed

+2
-0
lines changed

ts/WoltLabSuite/Core/Date/Picker.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -911,6 +911,7 @@ const DatePicker = {
911911
const data = _data.get(element) as DatePickerData;
912912

913913
element.dataset.value = date.getTime().toString();
914+
element.dataset.empty = "false";
914915

915916
let format = "";
916917
let value: string;

wcfsetup/install/files/js/WoltLabSuite/Core/Date/Picker.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)