We have run into either a bug or some bad programming. A program we've used
for some time suddenly started giving datetime conversion errors (1267) today,
February 29. Here is the offending code segment:
function date_test()
define
one_year date,
three_year date,
five_year date
let one_year = current - 1 units year
let three_year = current - 3 units year
let five_year = current - 5 units year
( rest of function )
Each of the let statements generated the -1267 error. I'm guessing it is
because there is no February 29th in any of the earlier years. Fixing the
problem was pretty easy. I did the following:
let one_year = today - 365
let three_year = today - (365 * 3)
let five_year = today - (365 * 5)
Has anyone else hit this today? Is it a bug, or just bad programming? I
didn't write it, BTW, so criticism won't bother me.
Thanks,
Tom Allred
tom@systems.rwbost.com