Use report date setting and tweak default
This commit is contained in:
@@ -22,8 +22,8 @@ class Constants
|
||||
new DateDisplayFormat("DOW, Month Day, Year", "Sunday, April 5, 2026", "dddd, MMMM d, yyyy"),
|
||||
new DateDisplayFormat("Abbreviated-Month Day, Year", "Apr 5, 2026", "MMM d, yyyy"),
|
||||
new DateDisplayFormat("DOW, Abbreviated-Month Day, Year", "Sunday, Apr 5, 2026", "dddd, MMM d, yyyy"),
|
||||
new DateDisplayFormat("Day Month, Year", "5 April, 2026", "d MMMM, yyyy"),
|
||||
new DateDisplayFormat("Day Abbreviated-Month, Year", "5 Apr, 2026", "d MMM, yyyy"),
|
||||
new DateDisplayFormat("Day Month, Year", "5 April 2026", "d MMMM yyyy"),
|
||||
new DateDisplayFormat("Day Abbreviated-Month, Year", "5 Apr 2026", "d MMM yyyy"),
|
||||
new DateDisplayFormat("Day Month, Year", "05 April 2026", "dd MMMM yyyy"),
|
||||
new DateDisplayFormat("Day Abbreviated-Month, Year", "05 Apr 2026", "dd MMM yyyy"),
|
||||
];
|
||||
|
||||
@@ -32,7 +32,7 @@ class Settings : ChangeNotifier
|
||||
_saveReportJsonDataInInternalDir = false;
|
||||
_workingFolderToInternalFolderName = [];
|
||||
_settingsVersion = 1;
|
||||
_dataGridDateFormat = "yyyy-MM-dd";
|
||||
_dataGridDateFormat = "dd/MM/yyyy";
|
||||
_reportDateFormat = "yyyy-MM-dd";
|
||||
}
|
||||
|
||||
|
||||
@@ -815,7 +815,7 @@ class MainViewModel : BaseViewModel, IFontResolver, ICanCheckShutdown
|
||||
receiptDatePar.Format.Font.Size = 12;
|
||||
receiptDatePar.Format.Font.Bold = true;
|
||||
receiptDatePar.Format.Font.Name = "Noto Sans JP"; // has english letters in it, too
|
||||
receiptDatePar.AddText(file.ReceiptDate.ToString("yyyy-MM-dd"));
|
||||
receiptDatePar.AddText(file.ReceiptDate.ToString(_settings.ReportDateFormat));
|
||||
receiptDatePar.Tag = "ReceiptDatePar";
|
||||
if (!string.IsNullOrWhiteSpace(file.Notes))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user