Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Kalendar
Commits
3e27867f
Commit
3e27867f
authored
Nov 01, 2021
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/contents/ui/WeekView.qml
View file @
3e27867f
...
...
@@ -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
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment