Closed Bug 296559 Opened 20 years ago Closed 20 years ago

make calIDateTime.isDate = true set hours, minutes, seconds to 0

Categories

(Calendar :: Internal Components, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: pavlov, Assigned: pavlov)

Details

Attachments

(1 file)

make calIDateTime.isDate = true set hours, minutes, seconds to 0
Attached patch fix — — Splinter Review
Attachment #185285 - Flags: first-review?(vladimir)
Comment on attachment 185285 [details] [diff] [review] fix > NS_IMETHODIMP >+calDateTime::SetIsDate(PRBool aIsDate) >+{ >+ if (mImmutable) >+ return NS_ERROR_FAILURE; >+ >+ mIsDate = aIsDate; >+ if (aIsDate) { >+ mHour = 0; >+ mMinute = 0; >+ mSecond = 0; Should Normalize here to make sure mNativeTime gets updated >+ } >+ return NS_OK; >+} with that, r=me
Attachment #185285 - Flags: first-review?(vladimir) → first-review+
checked in
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: