Skip to content

Commit 22b3a30

Browse files
committed
fix: Impossible to set minutes to zero, in "date-time" view. (#34)
1 parent 0c8a28d commit 22b3a30

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ui/src/components/QDateTimeScroller.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,11 @@ export default {
173173
now = parseDate(new Date())
174174
if (this.value) {
175175
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
176+
if (tm.year !== void 0) now.year = tm.year
177+
if (tm.month !== void 0) now.month = tm.month
178+
if (tm.day !== void 0) now.day = tm.day
179+
if (tm.hour !== void 0) now.hour = tm.hour
180+
if (tm.minute !== void 0) now.minute = tm.minute
181181
}
182182
date = getDate(now) + ' ' + getTime(now)
183183
this.timestamp = parseTimestamp(date)

0 commit comments

Comments
 (0)