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
System
Dolphin
Commits
ec0baf06
Commit
ec0baf06
authored
Dec 13, 2021
by
Alexander Lohnau
💬
Browse files
Port deprecated QDateTime::toTime_t method call
parent
fd717b88
Pipeline
#109123
passed with stage
in 4 minutes and 58 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/tests/testdir.cpp
View file @
ec0baf06
...
...
@@ -31,7 +31,7 @@ static void setTimeStamp(const QString& path, const QDateTime& mtime)
{
#ifdef Q_OS_UNIX
struct
utimbuf
utbuf
;
utbuf
.
actime
=
mtime
.
to
Time_t
();
utbuf
.
actime
=
mtime
.
to
SecsSinceEpoch
();
utbuf
.
modtime
=
utbuf
.
actime
;
utime
(
QFile
::
encodeName
(
path
),
&
utbuf
);
#elif defined(Q_OS_WIN)
...
...
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