]> sigrok.org Git - pulseview.git/commitdiff
StoreSession: Use Glib::DateTime
authorSoeren Apel <redacted>
Sun, 9 Apr 2023 20:27:42 +0000 (22:27 +0200)
committerSoeren Apel <redacted>
Sun, 9 Apr 2023 20:27:42 +0000 (22:27 +0200)
pv/storesession.cpp

index 6d1a4ab96590391fdfada7a278a84262cef96123..8aaeff6ff4e5888714ef3096deb9059605cfe133 100644 (file)
@@ -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) {