(Qalculate! v0.9.7 from Ubuntu repositories; Xubuntu 12.04; 64 bits)
There seems to be a bug in the days()
function in my locale (es_ES.UTF-8).
If I run
qalculate
and type days(2079−01−01; 1900−01−01)
I get 36920. This is wrong.
However, if I run
LC_TIME=C qalculate
and do the same, I get 65379, which is the right answer.
In both cases I get the right answer for days(2080−01−01; 1900−01−01)
(i.e. 65744).
This seems to be caused by a bug in glib. Dates between 2049-01-01 and 2079-12-31 is parsed wrong using es_ES.UTF-8 locale.