diff options
Diffstat (limited to 'src/gui.cpp')
| -rw-r--r-- | src/gui.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/gui.cpp b/src/gui.cpp index a1a0698..fc6f1e1 100644 --- a/src/gui.cpp +++ b/src/gui.cpp | |||
| @@ -171,14 +171,8 @@ static void RefreshWallet() | |||
| 171 | 171 | ||
| 172 | void MainFrameRepaint() { g_needRefresh = true; } | 172 | void MainFrameRepaint() { g_needRefresh = true; } |
| 173 | 173 | ||
| 174 | string DateTimeStr(int64 nTime) | 174 | // DateTimeStr moved to util.cpp: main.cpp logs block times with it, so it is |
| 175 | { | 175 | // needed by builds that have no GUI at all. |
| 176 | time_t t = (time_t)nTime; | ||
| 177 | struct tm* p = localtime(&t); | ||
| 178 | if (!p) return ""; | ||
| 179 | char buf[32]; strftime(buf, sizeof(buf), "%m/%d/%y %H:%M", p); | ||
| 180 | return buf; | ||
| 181 | } | ||
| 182 | 176 | ||
| 183 | // --------------------------------------------------------------------------- | 177 | // --------------------------------------------------------------------------- |
| 184 | // Status bar -- separate fullscreen-width overlay pinned to bottom edge. | 178 | // Status bar -- separate fullscreen-width overlay pinned to bottom edge. |