This commit is contained in:
David Kelly 2017-09-01 10:16:45 -07:00
parent 1eb503f526
commit 655dc61ff2

View file

@ -144,7 +144,7 @@ void Ledger::historySuccess(QNetworkReply& reply) {
// be explicit
#ifdef Q_OS_MAC
QDateTime createdAt = QDateTime::fromTime_t(valueObject["created_at"].toInt(), Qt::UTC);
#elif
#else
QDateTime createdAt = QDateTime::fromSecsSinceEpoch(valueObject["created_at"].toInt(), Qt::UTC);
#endif
QDateTime localCreatedAt = createdAt.toTimeZone(QTimeZone::systemTimeZone());