Permalink
Browse files

Use UTC time for createion of log files.

This was somehow missed in the UTC conversion. For consistency
with other files created with a date and time these should use
UTC in the naming of the log files.
  • Loading branch information...
1 parent b149724 commit 28d9324ed93dbf9232e4a2947bd31bf4b5e55485 @daniel-kristjansson daniel-kristjansson committed Jul 6, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 mythtv/libs/libmythbase/mythcommandlineparser.cpp
@@ -2443,8 +2443,8 @@ QString MythCommandLineParser::GetLogFilePath(void)
logdir = finfo.filePath();
logfile = QCoreApplication::applicationName() + "." +
- QDateTime::currentDateTime().toString("yyyyMMddhhmmss") +
- QString(".%1").arg(pid) + ".log";
+ MythDate::toString(MythDate::current(), MythDate::kFilename) +
+ QString(".%1").arg(pid) + ".log";
SetValue("logdir", logdir);
SetValue("logfile", logfile);

0 comments on commit 28d9324

Please sign in to comment.