Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
KDE PIM Add-ons
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PIM
KDE PIM Add-ons
Commits
b9fd9224
Commit
b9fd9224
authored
Jun 19, 2016
by
Daniel Vrátil
🤖
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PimEventsPlugin: fix start/end time of all-day events in different TZ
parent
33032d5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
plugins/plasma/pimeventsplugin/eventdatavisitor.cpp
plugins/plasma/pimeventsplugin/eventdatavisitor.cpp
+7
-1
No files found.
plugins/plasma/pimeventsplugin/eventdatavisitor.cpp
View file @
b9fd9224
...
...
@@ -105,10 +105,16 @@ QVector<CalendarEvents::EventData> BaseEventDataVisitor::explodeIncidenceOccuren
QVector
<
CalendarEvents
::
EventData
>
results
;
while
(
rec
.
isValid
()
&&
rec
.
date
()
<=
mEnd
)
{
CalendarEvents
::
EventData
copy
=
ed
;
const
QDateTime
dt
=
rec
.
dateTime
();
QDateTime
dt
;
if
(
incidence
->
allDay
())
{
dt
=
QDateTime
(
rec
.
date
(),
QTime
(
0
,
0
,
0
),
Qt
::
LocalTime
);
}
else
{
dt
=
rec
.
toLocalZone
().
dateTime
();
}
copy
.
setStartDateTime
(
dt
);
copy
.
setEndDateTime
(
dt
.
addSecs
(
duration
));
copy
.
setUid
(
generateUid
(
incidence
,
rec
));
results
.
push_back
(
copy
);
rec
=
incidence
->
recurrence
()
->
getNextDateTime
(
rec
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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