[Commits] [SCM] claws branch, master, updated. 3.14.1-243-g76b8816
ticho at claws-mail.org
ticho at claws-mail.org
Fri Mar 24 11:13:28 CET 2017
The branch, master has been updated
via 76b8816837325cf3689ef6d37d3e9d45980a91c8 (commit)
from 7142012c7bf9be776e6aaa6448c073ac0f37253e (commit)
Summary of changes:
src/procheader.c | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
- Log -----------------------------------------------------------------
commit 76b8816837325cf3689ef6d37d3e9d45980a91c8
Author: Andrej Kacian <ticho at claws-mail.org>
Date: Fri Mar 24 11:11:58 2017 +0100
Fix timezone handling in procheader_date_parse() on Windows.
This fixes logic error introduced in 029174b.
diff --git a/src/procheader.c b/src/procheader.c
index ea20c93..3277740 100644
--- a/src/procheader.c
+++ b/src/procheader.c
@@ -1059,21 +1059,14 @@ time_t procheader_date_parse(gchar *dest, const gchar *src, gint len)
GTimeZone *tz;
GDateTime *dt, *dt2;
- /* First create a valid GDateTime in UTC. */
- tz = g_time_zone_new_utc();
+ tz = g_time_zone_new(zone); // can't return NULL no need to check for it
dt = g_date_time_new(tz, 1, 1, 1, 0, 0, 0);
g_time_zone_unref(tz);
dt2 = g_date_time_add_full(dt, year-1, dmonth-1, day-1, hh, mm, ss);
g_date_time_unref(dt);
- /* Now we shift it to the desired time zone. */
- tz = g_time_zone_new(zone);
- dt = g_date_time_to_timezone(dt2, tz);
+ timer = g_date_time_to_unix(dt2);
g_date_time_unref(dt2);
- g_time_zone_unref(tz);
-
- timer = g_date_time_to_unix(dt);
- g_date_time_unref(dt);
#else
struct tm t;
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list