[Goodies-commits] r4860 - xfce4-datetime-plugin/trunk/panel-plugin

Diego Ongaro ongardie at xfce.org
Thu May 29 23:01:14 CEST 2008


Author: ongardie
Date: 2008-05-29 21:01:14 +0000 (Thu, 29 May 2008)
New Revision: 4860

Modified:
   xfce4-datetime-plugin/trunk/panel-plugin/datetime.c
Log:
Updated tm_year=100 based on Steve Tyler's comment on Bug #4117


Modified: xfce4-datetime-plugin/trunk/panel-plugin/datetime.c
===================================================================
--- xfce4-datetime-plugin/trunk/panel-plugin/datetime.c	2008-05-29 21:01:09 UTC (rev 4859)
+++ xfce4-datetime-plugin/trunk/panel-plugin/datetime.c	2008-05-29 21:01:14 UTC (rev 4860)
@@ -72,7 +72,12 @@
     .tm_hour  = 0,
     .tm_mday  = 1,
     .tm_mon   = 0,
-    .tm_year  = 0,
+    .tm_year  = 100, /* "Updates do not occur every second with the '%s'
+			 specifier. Increasing the tm_year field to 100 (70
+			 would probably work) results in updates every second.
+			 I believe the time conversion was failing because the
+			 year 1900 cannot be represented as a number of seconds
+			 since 1970." -Steve Tyler, Bug #4117, Comment #3 */
     .tm_wday  = 0,
     .tm_yday  = 0,
     .tm_isdst = 0




More information about the Goodies-commits mailing list