adium-1.4 2638:81dc067bf20b: Replace %dateOpened% with the user'...

commits at adium.im commits at adium.im
Sat Oct 24 16:02:04 UTC 2009


details:	http://hg.adium.im/adium-1.4/rev/81dc067bf20b
revision:	2638:81dc067bf20b
author:		Zachary West <zacw at adium.im>
date:		Sat Oct 24 12:01:59 2009 -0400

Replace %dateOpened% with the user's long localized date display. Fixes #12692.

diffs (13 lines):

diff -r b6baa3290a42 -r 81dc067bf20b Plugins/WebKit Message View/AIWebkitMessageViewStyle.m
--- a/Plugins/WebKit Message View/AIWebkitMessageViewStyle.m	Sat Oct 24 11:35:35 2009 -0400
+++ b/Plugins/WebKit Message View/AIWebkitMessageViewStyle.m	Sat Oct 24 12:01:59 2009 -0400
@@ -1219,6 +1219,9 @@
 		}
 	} while (range.location != NSNotFound);
 	
+	[inString replaceKeyword:@"%dateOpened%"
+				  withString:[[NSDateFormatter localizedDateFormatter] stringFromDate:[chat dateOpened]]];
+	
 	//Background
 	{
 		range = [inString rangeOfString:@"==bodyBackground=="];




More information about the commits mailing list