From: Soeren Apel Date: Sun, 9 Apr 2023 20:27:42 +0000 (+0200) Subject: StoreSession: Use Glib::DateTime X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=292b6ebc37281a28982e5d9e43471d9b3eab1d8f;p=pulseview.git StoreSession: Use Glib::DateTime --- diff --git a/pv/storesession.cpp b/pv/storesession.cpp index 6d1a4ab9..8aaeff6f 100644 --- a/pv/storesession.cpp +++ b/pv/storesession.cpp @@ -185,9 +185,7 @@ bool StoreSession::start() any_segment->samplerate())}}); output_->receive(meta); - Glib::TimeVal start_time; - start_time.tv_sec = 0; // TODO Assumes saved data begins at t=0 - start_time.tv_usec = 0; + Glib::DateTime start_time; auto header = context->create_header_packet(start_time); output_->receive(header); } catch (Error& error) {