Print the snapshots date in local timezone format.

This commit is contained in:
Edu4rdSHL 2021-04-17 15:10:22 -05:00
parent 24d712f6d9
commit 84530ec971
No known key found for this signature in database
GPG key ID: 3A574A4009F553E5

View file

@ -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();