fix toString() to print the correct month r=vlad

This commit is contained in:
pavlov%pavlov.net 2004-12-16 21:18:00 +00:00
parent 1efd42a892
commit 0ef31b4f88

View File

@ -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())));