mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 22:55:23 +00:00
fix toString() to print the correct month r=vlad
This commit is contained in:
parent
1efd42a892
commit
0ef31b4f88
@ -188,7 +188,7 @@ calDateTime::ToString(nsACString& aResult)
|
||||
{
|
||||
aResult.Assign(nsPrintfCString(100,
|
||||
"%04d/%02d/%02d %02d:%02d:%02d%s%s",
|
||||
mYear, mMonth, mDay,
|
||||
mYear, mMonth + 1, mDay,
|
||||
mHour, mMinute, mSecond,
|
||||
((mTimezone.IsEmpty()) ? "" : " "),
|
||||
((mTimezone.IsEmpty()) ? "" : mTimezone.get())));
|
||||
|
Loading…
Reference in New Issue
Block a user