Mailing List Archive

[Bug 2530] funny timestamp if timezone offset has fractions of a minute
https://bugs.exim.org/show_bug.cgi?id=2530

Jeremy Harris <jgh146exb@wizmail.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Priority|medium |low

--- Comment #1 from Jeremy Harris <jgh146exb@wizmail.org> ---
Few people are likely to be interested in running such a timezone, hence the
"low"
importance classification. If you can develop a possible fix please do attach
it
here - though I'd suggest check with what the standards for email actually
allow,
before expending coding effort.

--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
[Bug 2530] funny timestamp if timezone offset has fractions of a minute [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=2530

--- Comment #2 from Arne Wörner <arne_woerner@yahoo.com> ---
yes, not many people would be happy, if TAI timestamps work...
i do not send so many emails from my box, so that it might be the best plan, to
write my own MTA, that delivers everything to the one and only allowed
recipient... :)

this would be solution #3 (it should be compliant, although it hides the
timezone of the MUA... at least it is more compliant than a offset rounded to
the nearest minute, that is lower or equal...):

> diff -u ./src/src/tod.c,orig ./src/src/tod.c
--- ./src/src/tod.c,orig 2020-02-23 22:27:38.220472512 +0000
+++ ./src/src/tod.c 2020-02-23 22:29:47.909701860 +0000
@@ -156,6 +156,9 @@
{
struct tm * gmt = gmtime(&now.tv_sec);

+ if (local.tm_sec != gmt->tm_sec)
+ memcpy(&local, gmt, sizeof(struct tm));
+
diff_min = 60*(local.tm_hour - gmt->tm_hour) + local.tm_min - gmt->tm_min;
if (local.tm_year != gmt->tm_year)
diff_min += (local.tm_year > gmt->tm_year)? 1440 : -1440;

P. S.:
diff has the same problem... giggle

--
You are receiving this mail because:
You are on the CC list for the bug.
[Bug 2530] funny timestamp if timezone offset has fractions of a minute [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=2530

Jeremy Harris <jgh146exb@wizmail.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unallocated@exim.org |jgh146exb@wizmail.org

--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
[Bug 2530] funny timestamp if timezone offset has fractions of a minute [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=2530

Git Commit <git@exim.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |git@exim.org

--- Comment #3 from Git Commit <git@exim.org> ---
Git commit:
https://git.exim.org/exim.git/commitdiff/158d713722a1635939f699a8ea1605e937866bfc

commit 158d713722a1635939f699a8ea1605e937866bfc
Author: Arne Wörner <arne_woerner@yahoo.com>
AuthorDate: Mon Feb 24 17:07:22 2020 +0000
Commit: Jeremy Harris <jgh146exb@wizmail.org>
CommitDate: Mon Feb 24 17:07:22 2020 +0000

fix timestamp outputs for tai timezone. bug 2530
----
doc/doc-txt/ChangeLog | 5 ++++
src/src/tod.c | 71 +++++++++++++++++++++++++++++----------------------
2 files changed, 46 insertions(+), 30 deletions(-)

--
You are receiving this mail because:
You are on the CC list for the bug.