[Commits] [SCM] claws branch, master, updated. 3.16.0-166-g9fcc879

claws at claws-mail.org claws at claws-mail.org
Wed May 16 16:31:08 CEST 2018


The branch, master has been updated
       via  9fcc879f86807bbc64ad6c7943624e8c6c21e217 (commit)
      from  91b4f7bb636cda097f76a8624585953c522d4693 (commit)

Summary of changes:
 src/common/utils.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit 9fcc879f86807bbc64ad6c7943624e8c6c21e217
Author: Paul <paul at claws-mail.org>
Date:   Wed May 16 15:31:03 2018 +0100

    when using hide_timezone, convert time to UTC

diff --git a/src/common/utils.c b/src/common/utils.c
index 941f1c7..8236e84 100644
--- a/src/common/utils.c
+++ b/src/common/utils.c
@@ -3558,7 +3558,10 @@ static void _get_rfc822_date(gchar *buf, gint len, gboolean hidetz)
 	gchar buf2[RFC822_DATE_BUFFSIZE];
 
 	t = time(NULL);
-	lt = localtime_r(&t, &buf1);
+	if (hidetz)
+		lt = gmtime_r(&t, &buf1);
+	else
+		lt = localtime_r(&t, &buf1);
 
 	sscanf(asctime_r(lt, buf2), "%3s %3s %d %d:%d:%d %d\n",
 	       day, mon, &dd, &hh, &mm, &ss, &yyyy);

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list