[Tkabber-dev] r1318 - in trunk/tkabber: . plugins/chat

tkabber-svn at jabber.ru tkabber-svn at jabber.ru
Tue Nov 20 21:54:07 MSK 2007


Author: sergei
Date: 2007-11-20 21:54:06 +0300 (Tue, 20 Nov 2007)
New Revision: 1318

Modified:
   trunk/tkabber/ChangeLog
   trunk/tkabber/plugins/chat/draw_timestamp.tcl
Log:
	* plugins/chat/draw_timestamp.tcl: Replaced [clock scan] by [expr] in
	  "23 hours 59 minutes ago" calculation.


Modified: trunk/tkabber/ChangeLog
===================================================================
--- trunk/tkabber/ChangeLog	2007-11-19 17:23:05 UTC (rev 1317)
+++ trunk/tkabber/ChangeLog	2007-11-20 18:54:06 UTC (rev 1318)
@@ -1,3 +1,8 @@
+2007-11-20  Sergei Golovan  <sgolovan at nes.ru>
+
+	* plugins/chat/draw_timestamp.tcl: Replaced [clock scan] by [expr] in
+	  "23 hours 59 minutes ago" calculation.
+
 2007-11-16  Sergei Golovan  <sgolovan at nes.ru>
 
 	* ifacetk/bwidget_workarounds.tcl: Fixed dialog definition if -parent

Modified: trunk/tkabber/plugins/chat/draw_timestamp.tcl
===================================================================
--- trunk/tkabber/plugins/chat/draw_timestamp.tcl	2007-11-19 17:23:05 UTC (rev 1317)
+++ trunk/tkabber/plugins/chat/draw_timestamp.tcl	2007-11-20 18:54:06 UTC (rev 1318)
@@ -20,7 +20,7 @@
     set chatw [chat::chat_win $chatid]
 
     set seconds [jlib::x_delay $x]
-    set seconds1 [clock scan "-23 hours 59 minutes" -base [clock seconds]]
+    set seconds1 [expr {[clock seconds] - 24*60*60 + 60}]
     if {$seconds <= $seconds1} {
 	set format $options(delayed_timestamp_format)
     } else {



More information about the Tkabber-dev mailing list