I noticed quite a while ago that some of the
ad-calendar-widget.tcl
procedures were treating April
incorrectly (it comes up as March in a number of them).
I finally traced the funkiness to the code in
calendar_get_info_from_db
, and here's an example (from psql) of
what's amiss:
=# select trunc(to_date('2001-04-01'::date, 'YYYY-MM-DD'), 'Month');
trunc
------------------------
2001-03-01 00:00:00-08
(1 row)
=# select trunc(to_date('2001-04-02'::date, 'YYYY-MM-DD'), 'Month');
trunc
------------------------
2001-04-01 00:00:00-08
(1 row)
As you can see, one of the Open ACS (or postgres internal) conversion
functions is treating April 1st incorrectly. (This may be limited to
2001 only, or it may be more far-reaching than this; I'm not sure
which.)
Has anyone reported this bug, or figured out a fix? I'm afraid I
don't know nearly enough about the Julian calendar to be able to
devise a fix (or workaround).
Any help would be appreciated...