From 4b40243f2b9e51dae93a2674618dbcad3ff05648 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 25 Mar 2020 10:45:00 -0600 Subject: fix two poorly-formed uses of Glib::DateTime --- gtk2_ardour/session_dialog.cc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'gtk2_ardour/session_dialog.cc') diff --git a/gtk2_ardour/session_dialog.cc b/gtk2_ardour/session_dialog.cc index 6cacbdec0f..bbf8335d34 100644 --- a/gtk2_ardour/session_dialog.cc +++ b/gtk2_ardour/session_dialog.cc @@ -541,12 +541,7 @@ SessionDialog::open_button_pressed (GdkEventButton* ev) void SessionDialog::setup_untitled_session () { - time_t n; - time (&n); - struct tm* now = localtime (&n); - Glib::DateTime tm (Glib::DateTime::create_now_local (mktime (now))); - - new_name_entry.set_text (string_compose (_("Untitled-%1"), tm.format ("%F-%H-%M-%S"))); + new_name_entry.set_text (string_compose (_("Untitled-%1"), Glib::DateTime::create_now_local().format ("%F-%H-%M-%S"))); new_name_entry.select_region (0, -1); new_name_was_edited = false; -- cgit v1.2.3