fanzju / google-glog

Automatically exported from code.google.com/p/google-glog
Other
0 stars 0 forks source link

Date/Time incorrect when creating log file on Windows. #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Code:
int main(int argc, char* argv[])
{
    google::InitGoogleLogging(argv[0]);
    google::SetLogDestination(INFO, "c:\\abc.log");
    LOG(INFO) << "ABC";
    return 0;
}

What is the expected output? What do you see instead?
Result: 1969/12/31 17:00:00

Should see current date/time. 2009/03/27 01:00:00

What version of the product are you using? On what operating system?
glog rev: r36
Windows Vista x64

Please provide any additional information below.

Original issue reported on code.google.com by ixsan...@gmail.com on 27 Mar 2009 at 7:15

GoogleCodeExporter commented 8 years ago
hi, I get the same issue, also running Microsift Vista x86.

Original comment by derek_ba...@hotmail.com on 4 Apr 2009 at 2:21

GoogleCodeExporter commented 8 years ago
Oops this was a terrible bug... Fixed with this patch:

http://code.google.com/p/google-glog/source/detail?r=45

Thanks folks for reporting this issue!

Original comment by shinichi...@gmail.com on 9 Apr 2009 at 7:53