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
e554cb9a
Commit
e554cb9a
authored
Nov 28, 2021
by
Claudio Cambra
Browse files
Kalendar now auto rounds new due dates for taskss to nearest next 15 mins
parent
6701810f
Pipeline
#102154
passed with stage
in 4 minutes and 27 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/contents/ui/IncidenceEditor.qml
View file @
e554cb9a
...
...
@@ -329,7 +329,11 @@ Kirigami.ScrollablePage {
}
else
if
(
incidenceForm
.
isTodo
&&
oldDate
)
{
root
.
incidenceWrapper
.
incidenceEnd
=
oldDate
}
else
if
(
incidenceForm
.
isTodo
)
{
root
.
incidenceWrapper
.
incidenceEnd
=
new
Date
()
let
start
=
new
Date
();
let
startInMsecsSinceEpoch
=
start
.
getTime
();
const
quarterHourInMsecs
=
15
*
60
*
1000
;
const
nearestQuarterHourStart
=
startInMsecsSinceEpoch
+
(
quarterHourInMsecs
-
startInMsecsSinceEpoch
%
quarterHourInMsecs
);
root
.
incidenceWrapper
.
incidenceEnd
=
new
Date
(
nearestQuarterHourStart
);
}
}
visible
:
incidenceForm
.
isTodo
...
...
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