mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
change date/time format
This commit is contained in:
parent
b44c5c34da
commit
546cefc025
1 changed files with 4 additions and 3 deletions
|
|
@ -1,4 +1,5 @@
|
|||
const DEFAULT: &str = "-";
|
||||
const DATE_TIME_FORMAT: &str = "%Y.%m.%d %H:%M:%S";
|
||||
|
||||
pub trait Column {
|
||||
fn icon() -> Self;
|
||||
|
|
@ -185,7 +186,7 @@ impl Column for gtk::ColumnViewColumn {
|
|||
file_info
|
||||
.creation_date_time()
|
||||
.unwrap()
|
||||
.format_iso8601()
|
||||
.format(DATE_TIME_FORMAT) // @TODO optional
|
||||
.unwrap_or(DEFAULT.into()),
|
||||
)
|
||||
.build(),
|
||||
|
|
@ -216,7 +217,7 @@ impl Column for gtk::ColumnViewColumn {
|
|||
file_info
|
||||
.modification_date_time()
|
||||
.unwrap()
|
||||
.format_iso8601()
|
||||
.format(DATE_TIME_FORMAT) // @TODO optional
|
||||
.unwrap_or(DEFAULT.into()),
|
||||
)
|
||||
.build(),
|
||||
|
|
@ -247,7 +248,7 @@ impl Column for gtk::ColumnViewColumn {
|
|||
file_info
|
||||
.access_date_time()
|
||||
.unwrap()
|
||||
.format_iso8601()
|
||||
.format(DATE_TIME_FORMAT) // @TODO optional
|
||||
.unwrap_or(DEFAULT.into()),
|
||||
)
|
||||
.build(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue