The complaint is that the date which appeared in the log bore the month number 09, when it should have been 10.
Summary: timestamp of NSPR logging produces log of previous month → NSPR logging timestamp month number is off by one
Wada, thanks for the bug report. This bug is easy to fix. Just add 1 to now.tm_month here: http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/nsprpub/pr/src/io/prlog.c&rev=3.50&mark=459#455 Could you write a patch and test it? Thanks.
Target Milestone: --- → 4.8.3
Sorry but I can't write patch, although I can guess "now.tm_month -> ++now.tm_month" will solve problem.
Just change now.tm_month to now.tm_month + 1
Created attachment 407204 [details] [diff] [review] A patch Created a trivial path. Sorry for my fault.
Comment on attachment 407204 [details] [diff] [review] A patch r=wtc. Thank you, Hiroyuki.
Attachment #407204 - Flags: review+
I checked in the patch on the NSPR trunk (NSPR 4.8.3). Checking in pr/src/io/prlog.c; /cvsroot/mozilla/nsprpub/pr/src/io/prlog.c,v <-- prlog.c new revision: 3.51; previous revision: 3.50 done
Status: NEW → RESOLVED
Last Resolved: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.