port SVN revision 953972 by winterz
Thanks goodness for unit tests...
Fix a problem that can occur when writing durations stored in day units
instead of seconds units.
All branches have this fix now. So please just record this in trunk.
svn path=/branches/kdepim/enterprise4/kdepimlibs/; revision=960525