logging library - minor bug report in "$yy" year formating

Hello there, been playing with the logging library. Is this the right place to post bug reports? It seems that $yy prints "105" for the year 2005, not "05", which I expected. $yyyy is correct, it prints 2005. If line 173, // vals[m_yy + 1] = details.tm_year; is changed to // vals[m_yy + 1] = details.tm_year % 100; it appears to work... although I only tested with today's date.

Andy Schweitzer wrote:
Hello there, been playing with the logging library. Is this the right place to post bug reports?
It seems that $yy prints "105" for the year 2005, not "05", which I expected. $yyyy is correct, it prints 2005.
If line 173, // vals[m_yy + 1] = details.tm_year; is changed to // vals[m_yy + 1] = details.tm_year % 100; it appears to work... although I only tested with today's date.
Yup, thanks! I'll update the code. Best, John -- John Torjo, Contributing editor, C/C++ Users Journal -- "Win32 GUI Generics" -- generics & GUI do mix, after all -- http://www.torjo.com/win32gui/ -v1.6.3 (Resource Splitter) -- http://www.torjo.com/cb/ - Click, Build, Run!
participants (2)
-
Andy Schweitzer
-
John Torjo