diff --git a/calendar/base/src/calDateTime.cpp b/calendar/base/src/calDateTime.cpp index 568b903e8322..c72d4ba09fa9 100644 --- a/calendar/base/src/calDateTime.cpp +++ b/calendar/base/src/calDateTime.cpp @@ -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())));