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

--- Comment #9 from Pierre Lepage <[email protected]> ---
With this simple function test:

sub TestFormat
print format(Now,"YYYY-MM-DD MM ")
End Sub

The result is the month with MM. But if we add or precede with MM and HH or SS,
the result is as expected of minutes.

The story begins with the RTL RTL function FUNC (Format) (3498 line in
methods.cxx). It follows a call to the function 'format' with the format string
and the number or string to format. Beginning at line 661 (in sbxscan.cxx),
some basic treatments are done on simple format string, and there, n or nn (N
or NN) is correctly treated as a standalone simple format string (i.e. nothing
else then "n" or "nn"). More complex format strings treatment are deferred to
SvNumberFormatter where code "n" or "nn" is not take into account as expected.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to