https://bugs.freedesktop.org/show_bug.cgi?id=72297
Priority: medium Bug ID: 72297 Assignee: libreoffice-bugs@lists.freedesktop.org Summary: BASIC: CDateFromUnoDateTime does not work! Severity: normal Classification: Unclassified OS: Windows (All) Reporter: t...@mic-consulting.de Hardware: Other Whiteboard: BSA Status: UNCONFIRMED Version: 4.1.2.3 release Component: BASIC Product: LibreOffice Created attachment 90208 --> https://bugs.freedesktop.org/attachment.cgi?id=90208&action=edit XRAY aStruct - correct createDate values Problem description: the function CDateFromUnoDateTime does not work as expected. Steps to reproduce: Try the following code: sub test dim d as double aStruct = CDateToUnoDateTime(now()) xray aStruct 'correct values d = CDatefromUnoDateTime(aStruct) msgbox d 'result is something like 7,43823647510086E+173 end sub If d is a string, result will be something like "20.12.-3741". Results are equal when you try to get f.e. the creation date of a document: sub GetCreationDateDoc odoc = thisComponent aStruct = oDoc.getDocumentProperties.creationDate d = CDatefromUnoDateTime(aStruct) msgbox d 'result is something like "20.12.-3741" end sub The values of the struct is correct - maybe the nanoseconds are ??, but generally everything is ok (see attached picture) So I believe the function CDateFromUnoDateTime is not working correct. Current behavior: Expected behavior: Operating System: Windows 7 Version: 4.1.2.3 release -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs