From 71220945daa6ac81e7adb9b3401f07e4a6a3ea3f Mon Sep 17 00:00:00 2001 From: maforget <11904426+maforget@users.noreply.github.com> Date: Sat, 25 May 2024 00:31:20 -0400 Subject: [PATCH] Added a Published (regional) column that will follow os formatting. --- ComicRack.Engine/ComicBook.cs | 2 ++ ComicRack/Changes.txt | 1 + ComicRack/Views/ComicBrowserControl.cs | 1 + 3 files changed, 4 insertions(+) diff --git a/ComicRack.Engine/ComicBook.cs b/ComicRack.Engine/ComicBook.cs index 96cefdb..085b308 100644 --- a/ComicRack.Engine/ComicBook.cs +++ b/ComicRack.Engine/ComicBook.cs @@ -1121,6 +1121,8 @@ public string WeekAsText } } + public string PublishedRegional => FormatDate(Published, ComicDateFormat.Short, toLocal: false, unkownText.Value); + public string PublishedAsText { get diff --git a/ComicRack/Changes.txt b/ComicRack/Changes.txt index d0197c5..9fd95ca 100644 --- a/ComicRack/Changes.txt +++ b/ComicRack/Changes.txt @@ -17,6 +17,7 @@ Community Edition Build 0.9.180: * NEW: Added an "Is Missing" smart list entry. (Again backup your DB, this could result in a corrupted database if going back to an older version) * NEW: "__MACOSX" & ".DS_Store" folders will be ignored inside archives. * NEW: Images smaller than 512 bytes will be ignored inside archives. +* NEW: Added a "Published (Regional)" column that will use the OS regional setting for the Published date (like the other dates). * CHANGE: Updated to .NET Framework v4.8. * CHANGE: Updated the Splash Screen and Renamed the Program to Community Edition, this means that a new config folder will be used %appdata%\cYo\ComicRack Community Edition. diff --git a/ComicRack/Views/ComicBrowserControl.cs b/ComicRack/Views/ComicBrowserControl.cs index 22a865f..854f78e 100644 --- a/ComicRack/Views/ComicBrowserControl.cs +++ b/ComicRack/Views/ComicBrowserControl.cs @@ -770,6 +770,7 @@ public ComicBrowserControl() itemView.Columns.Add(new ItemViewColumn(68, "Day", 40, new ComicListField("DayAsText", "Day the Book was published", "Day"), new CoverViewItemBookComparer(), new CoverViewItemBookGrouper(), visible: false, StringAlignment.Far)); itemView.Columns.Add(new ItemViewColumn(69, "Week", 40, new ComicListField("WeekAsText", "Week the Book was published"), new CoverViewItemBookComparer(), new CoverViewItemBookGrouper(), visible: false, StringAlignment.Far)); itemView.Columns.Add(new ItemViewColumn(70, "Released", 60, new ComicListField("ReleasedTime", "Time the Book was released", null, StringTrimming.Word, typeof(DateTime), ComicBook.TR["Unknown"]), new CoverViewItemBookComparer(), new CoverViewItemBookGrouper(), visible: false, StringAlignment.Far, strings)); + itemView.Columns.Add(new ItemViewColumn(71, "Published (Regional)", 40, new ComicListField("PublishedRegional", "Publication date of the Book (regional formating)"), new CoverViewItemBookComparer(), new CoverViewItemBookGrouper(), visible: false, StringAlignment.Far)); itemView.Columns.Add(new ItemViewColumn(200, "Series: Books", 50, new ComicListField("SeriesStatCountAsText", "Books in the Series"), new CoverViewItemStatsComparer(), new CoverViewItemStatsGrouper(), visible: false, StringAlignment.Far)); itemView.Columns.Add(new ItemViewColumn(201, "Series: Pages", 50, new ComicListField("SeriesStatPageCountAsText", "Pages in the Series"), new CoverViewItemStatsComparer(), new CoverViewItemStatsGrouper(), visible: false, StringAlignment.Far)); itemView.Columns.Add(new ItemViewColumn(202, "Series: Pages Read", 50, new ComicListField("SeriesStatPageReadCountAsText", "Pages of the Series read"), new CoverViewItemStatsComparer(), new CoverViewItemStatsGrouper(), visible: false, StringAlignment.Far));