We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c8a28d commit 22b3a30Copy full SHA for 22b3a30
ui/src/components/QDateTimeScroller.js
@@ -173,11 +173,11 @@ export default {
173
now = parseDate(new Date())
174
if (this.value) {
175
const tm = parseTimestamp(this.value)
176
- if (tm.year) now.year = tm.year
177
- if (tm.month) now.month = tm.month
178
- if (tm.day) now.day = tm.day
179
- if (tm.hour) now.hour = tm.hour
180
- if (tm.minute) now.minute = tm.minute
+ if (tm.year !== void 0) now.year = tm.year
+ if (tm.month !== void 0) now.month = tm.month
+ if (tm.day !== void 0) now.day = tm.day
+ if (tm.hour !== void 0) now.hour = tm.hour
+ if (tm.minute !== void 0) now.minute = tm.minute
181
}
182
date = getDate(now) + ' ' + getTime(now)
183
this.timestamp = parseTimestamp(date)
0 commit comments