* use ShortTimeFormat also for LongTimeFormat if T_FMT_AMPM is not defined

for the current locale (Kylix-compatible, thanks to Luca Olivetti for
    the hint, fixes mantis #13947)

git-svn-id: trunk@13395 -
This commit is contained in:
Jonas Maebe 2009-07-16 16:44:15 +00:00
parent 55578e8226
commit 4e446c6184

View File

@ -260,7 +260,10 @@ begin
OrgFormatSettings.LongTimeFormat:=longtimeformat;
{$endif}
LongTimeFormat := TransformFormatStr(LongTimeFormat);
if (LongTimeFormat='') then
LongTimeFormat:=ShortTimeFormat
else
LongTimeFormat := TransformFormatStr(LongTimeFormat);
{$Ifdef BSD}
plocale:=localeconv;