You've already forked lazarus-ccr
fpspreadsheet: Write lower-case year/month/day symbols ("y"/"m"/"d") to date format strings. Issue #36137.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7152 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -1473,7 +1473,7 @@ end;
|
|||||||
string it is replaced by the localized strings
|
string it is replaced by the localized strings
|
||||||
FormatSettings.TimeAMString/.TimePMString.
|
FormatSettings.TimeAMString/.TimePMString.
|
||||||
|
|
||||||
@return Excel-compatible format string
|
@return Excel-compatible format string
|
||||||
-------------------------------------------------------------------------------}
|
-------------------------------------------------------------------------------}
|
||||||
function BuildFormatStringFromSection(const ASection: TsNumFormatSection;
|
function BuildFormatStringFromSection(const ASection: TsNumFormatSection;
|
||||||
AllowLocalizedAMPM: Boolean = true): String;
|
AllowLocalizedAMPM: Boolean = true): String;
|
||||||
@ -1527,11 +1527,11 @@ begin
|
|||||||
nftText:
|
nftText:
|
||||||
if element.TextValue <> '' then result := Result + '"' + element.TextValue + '"';
|
if element.TextValue <> '' then result := Result + '"' + element.TextValue + '"';
|
||||||
nftYear:
|
nftYear:
|
||||||
Result := Result + DupeString('Y', element.IntValue);
|
Result := Result + DupeString('y', element.IntValue);
|
||||||
nftMonth:
|
nftMonth:
|
||||||
Result := Result + DupeString('M', element.IntValue);
|
Result := Result + DupeString('m', element.IntValue);
|
||||||
nftDay:
|
nftDay:
|
||||||
Result := Result + DupeString('D', element.IntValue);
|
Result := Result + DupeString('d', element.IntValue);
|
||||||
nftHour:
|
nftHour:
|
||||||
if element.IntValue < 0
|
if element.IntValue < 0
|
||||||
then Result := Result + '[' + DupeString('h', -element.IntValue) + ']'
|
then Result := Result + '[' + DupeString('h', -element.IntValue) + ']'
|
||||||
|
Reference in New Issue
Block a user