From 243d3b0c7d96d75908ad09dd2febac790476d5d0 Mon Sep 17 00:00:00 2001 From: bigchimp Date: Wed, 23 Jul 2014 08:15:28 +0000 Subject: [PATCH] fpspreadsheet: try to fix date/time handling on Linux/Unix by adding clocale. Needs to be tested. git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3361 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- components/fpspreadsheet/tests/formattests.pas | 4 ++++ components/fpspreadsheet/tests/rpnformulaunit.pas | 3 +++ 2 files changed, 7 insertions(+) diff --git a/components/fpspreadsheet/tests/formattests.pas b/components/fpspreadsheet/tests/formattests.pas index e82b28713..9e7e0f7c7 100644 --- a/components/fpspreadsheet/tests/formattests.pas +++ b/components/fpspreadsheet/tests/formattests.pas @@ -10,6 +10,10 @@ units (e.g. datetests). } uses + {$IFDEF Unix} + //required for formatsettings + clocale, + {$ENDIF} // Not using Lazarus package as the user may be working with multiple versions // Instead, add .. to unit search path Classes, SysUtils, fpcunit, testutils, testregistry, diff --git a/components/fpspreadsheet/tests/rpnformulaunit.pas b/components/fpspreadsheet/tests/rpnformulaunit.pas index cbec39b50..e5f380297 100644 --- a/components/fpspreadsheet/tests/rpnformulaunit.pas +++ b/components/fpspreadsheet/tests/rpnformulaunit.pas @@ -3,6 +3,9 @@ unit rpnFormulaUnit; interface uses + {$IFDEF Unix} + clocale, //required for formatsettings + {$ENDIF} SysUtils, fpspreadsheet,fpsutils; procedure WriteRPNFormulaSamples(Worksheet: TsWorksheet;