diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2020-03-25 10:45:00 -0600 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2020-03-25 10:45:00 -0600 |
commit | 4b40243f2b9e51dae93a2674618dbcad3ff05648 (patch) | |
tree | 656c7cc1dacce66e7aa62d9f02ddbf8fefe09bbc /gtk2_ardour/session_dialog.cc | |
parent | 3d6eaf8e69e460f8346579b5aa6424fab71c43c7 (diff) |
fix two poorly-formed uses of Glib::DateTime
Diffstat (limited to 'gtk2_ardour/session_dialog.cc')
-rw-r--r-- | gtk2_ardour/session_dialog.cc | 7 |
1 files changed, 1 insertions, 6 deletions
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; |