all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Larry Denenberg <larry@denenberg.com>
Cc: larry@denenberg.com, denis.roegel@loria.fr, reingold@cs.uiuc.edu
Subject: Timezone error in calculating dates of equinoxes and solstices
Date: Mon, 23 Sep 2002 13:18:14 CDT	[thread overview]
Message-ID: <200209231818.g8NIIGI6016740@stay.intouchsys.com> (raw)


This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.1.2 (sparc-sun-solaris2.5, X toolkit)
 of 2002-05-23 on stay.intouchsys.com
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: nil
  locale-coding-system: nil
  default-enable-multibyte-characters: t

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

In timezone US/Eastern, emacs reports the wrong date for this year's
autumnal equinox.  It should be 12:55 AM EDT September 23 but is
reported as 12:55 AM EDT September 22.

    (setq displayed-month 9)
    9
    (setq displayed-year 2002)
    2002
    (solar-equinoxes-solstices)
    (((9 22 2002) "Autumnal Equinox 12:55am (EDT)"))

When I run emacs with TZ=US/Central, the last command correctly returns
    (((9 22 2002) "Autumnal Equinox 11:55pm (CDT)"))

I believe that the bug is in function solar-equinoxes-solstices, which
doesn't correctly convert the result of solar-equinoxes/solstices to
daylight time.

/Larry Denenberg
larry@denenberg.com
http://larry.denenberg.com/

                 reply	other threads:[~2002-09-23 18:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200209231818.g8NIIGI6016740@stay.intouchsys.com \
    --to=larry@denenberg.com \
    --cc=denis.roegel@loria.fr \
    --cc=reingold@cs.uiuc.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.