[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-410-g16aa94775

paul at claws-mail.org paul at claws-mail.org
Tue Feb 1 17:43:27 CET 2022


The branch, gtk3 has been updated
       via  16aa94775b0fbe308e37414589384837839515e7 (commit)
      from  4f36256a378bc2e02d2169b26fdee1c6784574b6 (commit)

Summary of changes:
 src/plugins/vcalendar/day-view.c | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)


- Log -----------------------------------------------------------------
commit 16aa94775b0fbe308e37414589384837839515e7
Author: paul <paul at claws-mail.org>
Date:   Tue Feb 1 17:43:23 2022 +0000

    fix old bug where the tooltip in Day View shows the wrong month
    
    thanks to John Crisp for reporting

diff --git a/src/plugins/vcalendar/day-view.c b/src/plugins/vcalendar/day-view.c
index 0a1bd62f0..a257ff530 100644
--- a/src/plugins/vcalendar/day-view.c
+++ b/src/plugins/vcalendar/day-view.c
@@ -2,7 +2,7 @@
  * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
  *
  * Copyright (c) 2007-2008 Juha Kautto (juha at xfce.org)
- * Copyright (c) 2008 Colin Leroy (colin at colino.net)
+ * Copyright (c) 2008-2022 the Claws Mail Team and  Colin Leroy (colin at colino.net)
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -151,8 +151,17 @@ void dw_close_window(day_win *dw)
 static char *orage_tm_date_to_i18_date(struct tm *tm_date)
 {
     static char i18_date[32];
-
-    if (strftime(i18_date, 32, "%x", tm_date) == 0)
+    struct tm t;
+    t.tm_mday = tm_date->tm_mday;
+    t.tm_mon = tm_date->tm_mon - 1;
+    t.tm_year = tm_date->tm_year - 1900;
+    t.tm_sec = 0;
+    t.tm_min = 0;
+    t.tm_hour = 0;
+    t.tm_wday = 0;
+    t.tm_yday = 0;
+
+    if (strftime(i18_date, 32, "%x", &t) == 0)
         g_error("Orage: orage_tm_date_to_i18_date too long string in strftime");
     return(i18_date);
 }

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list