]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Still some timezone fixes
authorTimo Sirainen <tss@iki.fi>
Tue, 22 Apr 2003 17:47:58 +0000 (20:47 +0300)
committerTimo Sirainen <tss@iki.fi>
Tue, 22 Apr 2003 17:47:58 +0000 (20:47 +0300)
--HG--
branch : HEAD

src/lib-imap/imap-date.c
src/lib-mail/message-date.c

index d62c432698c1c01508040f7b09a9d2458490b076..5ebe74fbf7176c5336909a94003e9c8b07ae77c0 100644 (file)
@@ -88,7 +88,7 @@ int imap_parse_date(const char *str, time_t *time)
                return FALSE;
 
        tm.tm_isdst = -1;
-       *time = mktime(&tm);
+       *time = utc_mktime(&tm);
        return *time != (time_t)-1;
 }
 
index f0ba5cc0130bab7bda1a2a8038f9c829bb8d4bd3..110d2eb8859f90b5fee250f03da65ae5bd60185e 100644 (file)
@@ -208,7 +208,7 @@ static int mail_date_parse_tokens(struct message_tokenizer *ctx, time_t *time,
        if (*time == (time_t)-1)
                return FALSE;
 
-       *time -= *timezone_offset * 60;
+       *time += *timezone_offset * 60;
 
        return TRUE;
 }