Browse Source

* 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 -

Jonas Maebe 16 years ago
parent
commit
4e446c6184
1 changed files with 4 additions and 1 deletions
  1. 4 1
      rtl/unix/clocale.pp

+ 4 - 1
rtl/unix/clocale.pp

@@ -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;