diff --git a/saoristyle.css b/saoristyle.css index 558840f..b3f1521 100644 --- a/saoristyle.css +++ b/saoristyle.css @@ -1,16 +1,20 @@ div.user_info { - font-size:small; + font-size:small; +} +div.created_at { + font-size:small; + text-align:right; } span.display_name { - font-size:large; + font-size:large; } span.acct { - color:gray; + color:gray; } img.avatar { - float:left; + float:left; } diff --git a/saoriview.cpp b/saoriview.cpp index 2883196..210fd4f 100644 --- a/saoriview.cpp +++ b/saoriview.cpp @@ -32,6 +32,7 @@ #include #include #include +#include #include QList SaoriView::m_viewList; @@ -72,6 +73,11 @@ if (json.isEmpty()) return QString(); result += "
"; result += accountParser(json["account"].toObject()); + result += "
"; + QDateTime dt = QDateTime::fromString(json["created_at"].toString(),"yyyy-MM-ddTHH:mm:ss.zzzZ"); + dt.setTimeSpec(Qt::UTC); + result += dt.toLocalTime().toString(); + result += "
"; result += "
"; result += json["content"].toString(); result += "
";