Ignore:
Timestamp:
11/28/07 17:27:26 (16 years ago)
Author:
Nicholas Riley
Message:

Info-Pester.plist: Updated for build 23.

NJRHotKey.m: Cosmetic cleanup.

PSAlarm.[hm]: Fix -[PSAlarm time] to work properly, though it no
longer has any clients.

PSSnoozeUntilController.m: Fix snooze until time being off by an hour
as displayed, or if edited, in some time zones.

PSSpeechAlert.m: Display the voice name instead of its identifier in
the description.

Pester.xcodeproj: Misc.

release-notes.html: Updated for build 23.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cocoa/Pester/Source/PSAlarm.m

    r364 r366  
    247247}
    248248
    249 - (NSCalendarDate *)time;
    250 {
     249- (NSDate *)time;
     250{
     251    // XXX this works, but the result is unlikely to be useful until we move away from NSCalendarDate elsewhere
    251252    if (alarmType == PSAlarmInterval) [self _setDateFromInterval];
    252     return [[NSCalendarDate alloc] initWithYear: 0
    253                                           month: 1
    254                                             day: 1
    255                                            hour: [alarmDate hourOfDay]
    256                                          minute: [alarmDate minuteOfHour]
    257                                          second: [alarmDate secondOfMinute]
    258                                        timeZone: nil];
     253
     254    NSCalendar *calendar = [NSCalendar currentCalendar];
     255
     256    return [calendar dateFromComponents:
     257            [calendar components: NSHourCalendarUnit|NSMinuteCalendarUnit|NSSecondCalendarUnit fromDate: alarmDate]];
    259258}
    260259
Note: See TracChangeset for help on using the changeset viewer.