adium 3777:664a53cbeca8: Oops, this method is 10.6 only.
commits at adium.im
commits at adium.im
Thu Mar 24 00:14:54 UTC 2011
details: http://hg.adium.im/adium/rev/664a53cbeca8
revision: 3777:664a53cbeca8
branch: (none)
author: Thijs Alkemade <thijsalkemade at gmail.com>
date: Thu Mar 24 01:14:45 2011 +0100
Oops, this method is 10.6 only.
diffs (14 lines):
diff -r fe30669165a2 -r 664a53cbeca8 Plugins/Purple Service/SLPurpleCocoaAdapter.m
--- a/Plugins/Purple Service/SLPurpleCocoaAdapter.m Thu Mar 24 00:35:21 2011 +0100
+++ b/Plugins/Purple Service/SLPurpleCocoaAdapter.m Thu Mar 24 01:14:45 2011 +0100
@@ -591,8 +591,8 @@
}
if (chat.lastMessageDate) {
-
- NSString *historySince = [[NSDate dateWithTimeInterval:1.0f sinceDate:chat.lastMessageDate]
+ NSTimeInterval lastMessageInterval = [chat.lastMessageDate timeIntervalSince1970];
+ NSString *historySince = [[NSDate dateWithTimeIntervalSince1970:lastMessageInterval + 1]
descriptionWithCalendarFormat:@"%Y-%m-%dT%H:%M:%SZ"
timeZone:[NSTimeZone timeZoneWithAbbreviation:@"UTC"]
locale:nil];
More information about the commits
mailing list