Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2011-05-09 20:22:34 +0000
committerStijn Buys <ingar@osirion.org>2011-05-09 20:22:34 +0000
commitbb0f860989f84b901f80017ae0139a3fc0446dc1 (patch)
tree3b9ef3a5164326d2ad4b531904603ea2afdb40e3 /src/sys/consoleinterface.cc
parent3de78ec1bef2a0274a719ea229709523650ade40 (diff)
Refactored the sys::localtime routines.
Diffstat (limited to 'src/sys/consoleinterface.cc')
-rw-r--r--src/sys/consoleinterface.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sys/consoleinterface.cc b/src/sys/consoleinterface.cc
index ce82047..77510f4 100644
--- a/src/sys/consoleinterface.cc
+++ b/src/sys/consoleinterface.cc
@@ -46,8 +46,8 @@ void set_ansi(const bool ansi)
void fallback_print_timestamp()
{
- int year = 0, month = 0, day = 0, hour = 0, min = 0, sec = 0;
- get_datetime(year, month, day, hour, min, sec);
+ int year = 0, month = 0, day = 0, hour = 0, min = 0, sec = 0, milliseconds = 0;
+ get_localtime(year, month, day, hour, min, sec, milliseconds);
std::cout << year << "-" << month << "-" << day << " " << hour << ":" << min << ":" << sec << " ";
}
@@ -165,8 +165,8 @@ int ConsoleBuffer::overflow(int c)
*/
if (con_timestamps && !ConsoleInterface::instance()->rcon()) {
std::ostringstream str;
- int year = 0, month = 0, day = 0, hour = 0, min = 0, sec = 0;
- get_datetime(year, month, day, hour, min, sec);
+ int year = 0, month = 0, day = 0, hour = 0, min = 0, sec = 0, milliseconds = 0;
+ get_localtime(year, month, day, hour, min, sec, milliseconds);
str << "^B"
<< std::setw(4) << std::setfill('0') << year << "-"