Changeset 5c0de74b53869ec82f99cc886a1728f2118da516

Show
Ignore:
Timestamp:
01/06/07 23:32:36 (6 years ago)
Author:
Philipp Kern <phil@…>
Parents:
1e21d14cdcf9edb861daeeeabb30055535fd6e09
Children:
fa007f9068c01270c631bc11f234ddd407860d0f
git-committer:
Philipp Kern <phil@0x539.de> / 2007-01-06T22:32:36Z+0000
Message:

[project @ Ugly fix to get the times right]

Original author: Philipp Kern <phil@…>
Date: 2005-04-25 15:44:22+00:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/logview.cpp

    r1e21d14 r5c0de74  
    5353 
    5454        std::stringstream timestream; 
    55         timestream.width(2); // Ging so %.2d? 
    56         timestream << "[" << cur_time.tm_hour << ":" << cur_time.tm_min << ":" 
    57                    << cur_time.tm_sec << "] "; 
     55        timestream << "["; 
     56        timestream.width(2); timestream.fill('0'); 
     57        timestream << cur_time.tm_hour; 
     58        timestream << ":"; 
     59        timestream.width(2); timestream.fill('0'); 
     60        timestream << cur_time.tm_min; 
     61        timestream << ":"; 
     62        timestream.width(2); timestream.fill('0'); 
     63        timestream << cur_time.tm_sec; 
     64        timestream << "] "; 
    5865        ins_text = timestream.str() + ins_text; 
    5966