[Libreoffice-bugs] [Bug 133711] getLocalDateTime function shows the wrong date

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Jun 11 11:47:21 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=133711

--- Comment #4 from libre officer <smartazaiz at gmail.com> ---
(In reply to himajin100000 from comment #3)
> https://api.libreoffice.org/docs/idl/ref/
> interfacecom_1_1sun_1_1star_1_1i18n_1_1XCalendar.
> html#a4860d7db902c41f6c4b2a1a0aa77e763
> 
> Get the UTC date/time as an offset to the start of the calendar at
> 1-Jan-1970 00:00. 
> 
> https://help.libreoffice.org/6.4/en-US/text/sbasic/shared/03030101.
> html?&DbPAR=BASIC&System=WIN

I see, it is confusing to use getLocalDateTime and a CDate, the first is using
the Unix epoch, the last ones are using the LibreOffice epoch (1900 or 1899).

This confusion needs to be avoided.


Note: please mark my post as NONBUG

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200611/09171d41/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list