Skip to content

Commit

Permalink
Update setattr.cpp and filefilterparams.cpp (from far2l)
Browse files Browse the repository at this point in the history
  • Loading branch information
shmuz committed Oct 15, 2023
1 parent fc5336e commit 658573d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions far/src/filefilterparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -782,20 +782,20 @@ bool FileFilterConfig(FileFilterParams *FF, bool ColorConfig)
{
case 0:
// Маска даты для форматов DD.MM.YYYYY и MM.DD.YYYYY
strDateMask.Format(L"99%c99%c99999",DateSeparator,DateSeparator);
strDateMask.Format(L"99%c99%c9999N", DateSeparator, DateSeparator);
break;
case 1:
// Маска даты для форматов DD.MM.YYYYY и MM.DD.YYYYY
strDateMask.Format(L"99%c99%c99999",DateSeparator,DateSeparator);
strDateMask.Format(L"99%c99%c9999N", DateSeparator, DateSeparator);
break;
default:
// Маска даты для формата YYYYY.MM.DD
strDateMask.Format(L"99999%c99%c99",DateSeparator,DateSeparator);
strDateMask.Format(L"N9999%c99%c99", DateSeparator, DateSeparator);
break;
}

// Маска времени
strTimeMask.Format(L"99%c99%c99%c999",TimeSeparator,TimeSeparator,DecimalSeparator);
strTimeMask.Format(L"99%c99%c99%c99N", TimeSeparator, TimeSeparator, DecimalSeparator);
DialogDataEx FilterDlgData[]=
{
{DI_DOUBLEBOX,3,1,76,18,{},DIF_SHOWAMPERSAND,Msg::FileFilterTitle},
Expand Down
2 changes: 1 addition & 1 deletion far/src/setattr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ bool ShellSetFileAttributes(Panel *SrcPanel,LPCWSTR Object)
wchar_t DateSeparator=GetDateSeparator();
wchar_t TimeSeparator=GetTimeSeparator();
wchar_t DecimalSeparator=GetDecimalSeparator();
LPCWSTR FmtMask1=L"99%c99%c99%c999",FmtMask2=L"99%c99%c99999",FmtMask3=L"99999%c99%c99";
LPCWSTR FmtMask1 = L"99%c99%c99%c99N", FmtMask2 = L"99%c99%c9999N", FmtMask3 = L"N9999%c99%c99";
FARString strDMask, strTMask;
strTMask.Format(FmtMask1,TimeSeparator,TimeSeparator,DecimalSeparator);

Expand Down

0 comments on commit 658573d

Please sign in to comment.