[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnumed-devel] [Gnumed-bugs] <bug>: occured today while registering
Re: [Gnumed-devel] [Gnumed-bugs] <bug>: occured today while registering new patient
Wed, 29 Feb 2012 12:21:45 +0100
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:126.96.36.199) Gecko/20111114 Iceowl/1.0b2 Icedove/3.1.16
Arghhhh... computers... Everybody who is frightened of computers and
machines taking over the lead: Don't worry - It won't work
Proofen today on the 29th of Feb. Haha...
Am 29.02.2012 11:50, schrieb Karsten Hilbert:
> On Wed, Feb 29, 2012 at 11:45:08AM +0100, Karsten Hilbert wrote:
>>> Encounter was saved, but I can't view it.
>>> Doesn't work for other patients either.
>> This Spuk will be gone tomorrow. It's another leap year age
>> calculation bug. I'm hunting it down. Thanks for reporting.
> Found it. When calculating the *apparent* age (the way
> humans would feel, not the way mathematics works) replaces
> the current day into the date of birth during its
> calculation. Today is Feb 29th which only occurs every so
> often. In case a patient is born in a non-leap year Python
> will throw an exception because Feb 29th did not exist in
> that year. Tomorrow everything will work as usual because
> March 1st existed in the year of birth.