I believe the attached ChartsFinal.txt solves the problems with dates used in LO 4.x. I am using 4.3.3.2 and no longer having problems. I have not beaten it to death, nor attempted all the corner cases, so some peer review is doubtless in order. I pretty much followed the original logic, casting types as required. I am indebted to allanlw for the pointers and hints he provided in his script, above.
I believe the attached ChartsFinal.txt solves the problems with dates used in LO 4.x. I am using 4.3.3.2 and no longer having problems. I have not beaten it to death, nor attempted all the corner cases, so some peer review is doubtless in order. I pretty much followed the original logic, casting types as required. I am indebted to allanlw for the pointers and hints he provided in his script, above.