ykaliuta / fidogate

FidoGate
GNU General Public License v2.0
12 stars 6 forks source link

Datetime, local timezone and TZUTC kludge #9

Closed evs38 closed 4 years ago

evs38 commented 4 years ago

When gating in both sides, date, time and timezone should use timezone from headers, not the timezone of the Fidogate server, when UseTZUTCKludge option is set.

Actual behaviour

RFC: Date: Mon, 17 Feb 2020 07:32:23 +0400 FTN: Date: 2020-02-17 06:32:22 @TZUTC: 0300

Expected behaviour

RFC: Date: Mon, 17 Feb 2020 07:32:23 +0400 FTN: Date: 2020-02-17 07:32:23 @TZUTC: 0400

Configuration

Timezone on Fidogate server: Europe/Moscow (UTC+0300) Timezone of NNTP client: Europe/Samara (UTC+0400) Timezone of FTN client: Europe/Samara (UTC+0400)

ykaliuta commented 4 years ago

Do you have the problem for ftn2rfc as well? I just remember I did something about that: https://github.com/ykaliuta/fidogate/commit/fd43be841d38cd3131f987d3164589586550f4bc