[Commits] [SCM] claws branch, master, updated. 3.18.0-333-g305feef56
paul at claws-mail.org
paul at claws-mail.org
Tue Feb 1 17:44:06 UTC 2022
The branch, master has been updated
via 305feef56cb0cf88bbc342e03623212f94ac5759 (commit)
from 8ad86a33011b59e1423a1477df7111806add9449 (commit)
Summary of changes:
src/plugins/vcalendar/day-view.c | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit 305feef56cb0cf88bbc342e03623212f94ac5759
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 fb5a49c6c..99aa0617a 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
@@ -152,8 +152,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