mirror of
https://github.com/edu4rdshl/rusnapshot.git
synced 2026-07-17 23:24:55 +00:00
Print the snapshots date in local timezone format.
This commit is contained in:
parent
24d712f6d9
commit
84530ec971
1 changed files with 2 additions and 1 deletions
|
|
@ -50,7 +50,8 @@ pub fn return_snapshot_data(connection: &Connection, args: &Args) -> Result<Data
|
|||
pub fn return_all_data(connection: &Connection) -> Result<Vec<Database>> {
|
||||
let mut snapshots_data: Vec<Database> = Vec::new();
|
||||
|
||||
let mut statement = connection.prepare("SELECT * FROM snapshots ORDER BY date DESC")?;
|
||||
let mut statement = connection
|
||||
.prepare("SELECT name,snap_id,kind,source,destination,ro_rw,datetime(date, 'localtime') FROM snapshots ORDER BY date DESC")?;
|
||||
|
||||
while let State::Row = statement.next()? {
|
||||
let db_struct = Database::default();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue