mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 11:58:37 +02:00
Remove dead OS X code
This commit is contained in:
parent
60823903cf
commit
65a63ea8c3
1 changed files with 0 additions and 4 deletions
|
@ -164,11 +164,7 @@ void Ledger::historySuccess(QNetworkReply& reply) {
|
||||||
// turns out on my machine, toLocalTime convert to some weird timezone, yet the
|
// turns out on my machine, toLocalTime convert to some weird timezone, yet the
|
||||||
// systemTimeZone is correct. To avoid a strange bug with other's systems too, lets
|
// systemTimeZone is correct. To avoid a strange bug with other's systems too, lets
|
||||||
// be explicit
|
// be explicit
|
||||||
#ifdef Q_OS_MAC
|
|
||||||
QDateTime createdAt = QDateTime::fromTime_t(valueObject["created_at"].toInt(), Qt::UTC);
|
|
||||||
#else
|
|
||||||
QDateTime createdAt = QDateTime::fromSecsSinceEpoch(valueObject["created_at"].toInt(), Qt::UTC);
|
QDateTime createdAt = QDateTime::fromSecsSinceEpoch(valueObject["created_at"].toInt(), Qt::UTC);
|
||||||
#endif
|
|
||||||
QDateTime localCreatedAt = createdAt.toTimeZone(QTimeZone::systemTimeZone());
|
QDateTime localCreatedAt = createdAt.toTimeZone(QTimeZone::systemTimeZone());
|
||||||
valueObject["text"] = QString("%1 sent %2 %3 with message \"%4\"").
|
valueObject["text"] = QString("%1 sent %2 %3 with message \"%4\"").
|
||||||
arg(from, to, coloredQuantityAndAssetTitle, valueObject["message"].toString());
|
arg(from, to, coloredQuantityAndAssetTitle, valueObject["message"].toString());
|
||||||
|
|
Loading…
Reference in a new issue