fix update message (#4116)
This commit is contained in:
parent
be7b172e55
commit
58d024d067
1 changed files with 2 additions and 2 deletions
|
@ -167,8 +167,8 @@ bool SpoilerBackgroundUpdater::saveDownloadedFile(QByteArray data)
|
||||||
QList<QByteArray> lines = data.split('\n');
|
QList<QByteArray> lines = data.split('\n');
|
||||||
|
|
||||||
foreach (QByteArray line, lines) {
|
foreach (QByteArray line, lines) {
|
||||||
if (line.contains("created:")) {
|
if (line.contains("Created At:")) {
|
||||||
QString timeStamp = QString(line).replace("created:", "").trimmed();
|
QString timeStamp = QString(line).replace("Created At:", "").trimmed();
|
||||||
timeStamp.chop(6); // Remove " (UTC)"
|
timeStamp.chop(6); // Remove " (UTC)"
|
||||||
|
|
||||||
auto utcTime = QLocale().toDateTime(timeStamp, "ddd, MMM dd yyyy, hh:mm:ss");
|
auto utcTime = QLocale().toDateTime(timeStamp, "ddd, MMM dd yyyy, hh:mm:ss");
|
||||||
|
|
Loading…
Reference in a new issue