mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-08 19:47:57 +02:00
* Fix day names
This commit is contained in:
parent
957c5371bc
commit
c4a5282309
@ -53,7 +53,7 @@ type
|
||||
TDayTable = array [1..12] of Word;
|
||||
TWeekNameArray = array [1..7] of string;
|
||||
TMonthNames = TMonthNameArray;
|
||||
TDayNames = array[0..6] of string;
|
||||
TDayNames = array[1..7] of string;
|
||||
|
||||
type
|
||||
|
||||
@ -4234,8 +4234,8 @@ var
|
||||
case Count of
|
||||
1: StoreInt(Day, 0);
|
||||
2: StoreInt(Day, 2);
|
||||
3: StoreString(aSettings.ShortDayNames[DayOfWeek-1]);
|
||||
4: StoreString(aSettings.LongDayNames[DayOfWeek-1]);
|
||||
3: StoreString(aSettings.ShortDayNames[DayOfWeek]);
|
||||
4: StoreString(aSettings.LongDayNames[DayOfWeek]);
|
||||
5: StoreFormat(aSettings.ShortDateFormat, Nesting+1, False);
|
||||
else
|
||||
StoreFormat(aSettings.LongDateFormat, Nesting+1, False);
|
||||
|
Loading…
Reference in New Issue
Block a user