getGMTstring: remove leading space, cleanup
This commit is contained in:
parent
b0271d17db
commit
2360487b19
1 changed files with 3 additions and 4 deletions
|
@ -316,11 +316,10 @@ setDateString (const char * date_string)
|
||||||
static const char *
|
static const char *
|
||||||
getGMTString ()
|
getGMTString ()
|
||||||
{
|
{
|
||||||
static char buf[16]; // FIXME
|
static char buf[16];
|
||||||
struct tm *t = globals->get_time_params()->getGmt();
|
struct tm *t = globals->get_time_params()->getGmt();
|
||||||
sprintf(buf, " %.2d:%.2d:%.2d",
|
snprintf(buf, 16, "%.2d:%.2d:%.2d",
|
||||||
t->tm_hour, t->tm_min, t->tm_sec);
|
t->tm_hour, t->tm_min, t->tm_sec);
|
||||||
// cout << t << " " << buf << endl;
|
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue