talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 9fcc879f86807bbc64ad6c7943624e8c6c21e217
parent 91b4f7bb636cda097f76a8624585953c522d4693
Author: Paul <paul@claws-mail.org>
Date:   Wed, 16 May 2018 15:31:03 +0100

when using hide_timezone, convert time to UTC

Diffstat:
Msrc/common/utils.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 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);