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
Network
KRDC
Commits
0ba2a5b7
Commit
0ba2a5b7
authored
Sep 01, 2022
by
Gabriel Souza Franco
Browse files
Fix access dates display
It is stored in seconds, not milliseconds
BUG: 458587
parent
d3e2bbf9
Pipeline
#226351
passed with stage
in 1 minute and 16 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
remotedesktopsmodel.cpp
View file @
0ba2a5b7
...
...
@@ -229,11 +229,11 @@ void RemoteDesktopsModel::buildModelFromBookmarkGroup(const KBookmarkGroup &grou
QDateTime
created
=
QDateTime
();
bool
ok
=
false
;
// first the created datetime
created
=
QDateTime
::
from
M
SecsSinceEpoch
(
bm
.
metaDataItem
(
QLatin1String
(
"time_added"
)).
toLongLong
(
&
ok
));
created
=
QDateTime
::
fromSecsSinceEpoch
(
bm
.
metaDataItem
(
QLatin1String
(
"time_added"
)).
toLongLong
(
&
ok
));
if
(
ok
)
(
newItem
?
item
:
remoteDesktops
[
index
]).
created
=
created
;
// then the last visited datetime
ok
=
false
;
connected
=
QDateTime
::
from
M
SecsSinceEpoch
(
bm
.
metaDataItem
(
QLatin1String
(
"time_visited"
)).
toLongLong
(
&
ok
));
connected
=
QDateTime
::
fromSecsSinceEpoch
(
bm
.
metaDataItem
(
QLatin1String
(
"time_visited"
)).
toLongLong
(
&
ok
));
if
(
ok
)
(
newItem
?
item
:
remoteDesktops
[
index
]).
lastConnected
=
connected
;
// finally the visited count
ok
=
false
;
...
...
Gabriel Souza Franco
@gabrielsf
mentioned in commit
f4824d49
·
Sep 02, 2022
mentioned in commit
f4824d49
mentioned in commit f4824d49759ba1cf1711e432ea4fe42a7359d380
Toggle commit list
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