gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] [Gnumed-bugs] <bug>: occured today while registering


From: Karsten Hilbert
Subject: Re: [Gnumed-devel] [Gnumed-bugs] <bug>: occured today while registering new patient
Date: Wed, 29 Feb 2012 12:38:59 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

> 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.
> 
> Fixed.

Marc, you may want to use the attached
client/pycommon/gmDateTime.py to get GNUmed
up and running even today.

Karsten
-- 
GPG key ID E4071346 @ gpg-keyserver.de
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346

Attachment: gmDateTime.py
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]