diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-08-03 20:52:18 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-08-03 20:52:18 +0200 |
commit | a99ac8d3f483d8a839ea3c4e0f400eaa64338acd (patch) | |
tree | c48625ca07979441b80db8da41fb1052fb79dc92 /src/qt/guiutil.cpp | |
parent | 2566b30c38cb1b1955118216c687a8a1063cc853 (diff) |
show last few transactions on overview page
Diffstat (limited to 'src/qt/guiutil.cpp')
-rw-r--r-- | src/qt/guiutil.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp index 308a6ba9bc..ece069072f 100644 --- a/src/qt/guiutil.cpp +++ b/src/qt/guiutil.cpp @@ -11,7 +11,11 @@ QString GUIUtil::DateTimeStr(qint64 nTime) { - QDateTime date = QDateTime::fromTime_t((qint32)nTime); + return DateTimeStr(QDateTime::fromTime_t((qint32)nTime)); +} + +QString GUIUtil::DateTimeStr(const QDateTime &date) +{ return date.date().toString(Qt::SystemLocaleShortDate) + QString(" ") + date.toString("hh:mm"); } |