Ignore:
Timestamp:
Sep 8, 2010, 8:34:15 PM (14 years ago)
Author:
george
Message:
  • Opraveno: Zobrazování jednotlivých stránek.
  • Opraveno: Zobrazení výpisu historie sítě.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/lazarus/UCore.pas

    r24 r25  
    1010type
    1111  TArrayOfString = array of string;
    12   TPageProducer = function: string;
    1312
    1413function MakeLink(Text, URL: string): string;
     
    2019function ShowFooter: string;
    2120function Explode(Separator: Char; Data: string): TArrayOfString;
    22 function HumanDate(Date: string): string;
     21function HumanDate(Date: TDateTime): string;
    2322function PagesList(URL: string; Page, TotalCount, CountPerPage: Integer): string;
    2423function StrRepeat(Data: string; Count: Integer): string;
     
    7877end;
    7978
    80 function HumanDate(Date: string): string;
    81 var
    82   Parts: TArrayOfString;
    83   Parts2: TArrayOfString;
     79function HumanDate(Date: TDateTime): string;
    8480begin
    85   Parts := Explode(' ', Date);
    86 //  Result := Date;
    87   Parts2 := Explode('-', Parts[0]);
    88   if Date <> '0000-00-00' then Result := IntToStr(StrToInt(Parts2[2])*1) + '.' + IntToStr(StrToInt(Parts2[1])*1) + '.' + Parts2[0]
    89     else Result := '&nbsp;';
     81  Result := FormatDateTime('d.m.yyyy', Date);
    9082end;
    9183
Note: See TracChangeset for help on using the changeset viewer.