To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=65555
User tjfrazier changed the following: What |Old value |New value ================================================================================ CC|'' |'tjfrazier' -------------------------------------------------------------------------------- ------- Additional comments from tjfraz...@openoffice.org Fri Dec 11 21:11:49 +0000 2009 ------- Because an unhappy user cited this bug on the dev ml, I comment that this antique bug has a simple workaround, entirely thanks to ab's insightful analysis. If the parser is messing up, give it a different variable to mess up on (and don't use that again). The following version of function Date2ISO appears to run correctly; the original version produces a run-time error. Function Date2ISO(vDt) as String 'conversion to basic-date dtVal If isUnoStruct(vDt)Then 'object/UNO-struct ' dtVal = dateSerial(vDt.year,vDt.month,vDt.day) vW = vDt 'work around compiler bug 65555 dtVal = dateSerial(vW.year,vW.month,vW.day) Else dtVal = cDate(vDt) End If sDt = cDateToISO(cDate(dtVal)) Date2ISO = left(sDt,4)&"-"& mid(sDt,5,2)&"-"& right(sDt,2) End Function --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@script.openoffice.org For additional commands, e-mail: issues-h...@script.openoffice.org --------------------------------------------------------------------- To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org For additional commands, e-mail: allbugs-h...@openoffice.org