Commit 3e27867f authored by Claudio Cambra's avatar Claudio Cambra
Browse files

Ensure week view hour labels set to 0 mins

parent fff4366f
Pipeline #92987 passed with stage
in 4 minutes and 22 seconds
......@@ -51,12 +51,12 @@ Kirigami.Page {
const date = new Date(1, 1, 1, 1, 0, 0, 0);
let i = Number(date.toLocaleTimeString(Qt.locale(), "H")[0]);
if(i > 1) { // Work around Javascript's absolutely stupid, insane and infuriating summertime hour handling
if(i !== 1) { // Work around Javascript's absolutely stupid, insane and infuriating summertime hour handling
i -= i;
}
for(i; i < 24; i++) {
date.setHours(i);
date.setHours(i, 0, 0, 0);
hourStrings.push(date.toLocaleTimeString(Qt.locale(), Locale.NarrowFormat));
hourStringsChanged();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment