From: Paul Date: Wed, 16 May 2018 14:31:03 +0000 (+0100) Subject: when using hide_timezone, convert time to UTC X-Git-Tag: 3.17.0~103 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=9fcc879f86807bbc64ad6c7943624e8c6c21e217;ds=sidebyside when using hide_timezone, convert time to UTC --- diff --git a/src/common/utils.c b/src/common/utils.c index 941f1c7f3..8236e848b 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);