Skip to content

Commit

Permalink
Fixes compilation issues with wxDateTime
Browse files Browse the repository at this point in the history
  • Loading branch information
crsib committed Jan 24, 2024
1 parent dc9baee commit 9a20721
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/mod-cloud-audiocom/ui/ProjectsListDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class ProjectsListDialog::ProjectsTableData final : public wxGridTableBase
0)(duration_cast<hours>(time_passed).count())
.Translation();

return wxDateTime(time).Format("%d.%m.%Y %H:%M");
return wxDateTime(static_cast<time_t>(time)).Format("%d.%m.%Y %H:%M");
}

static wxString FormatSize(int64_t size)
Expand Down Expand Up @@ -218,7 +218,7 @@ ProjectsListDialog::ProjectsListDialog(wxWindow* parent, AudacityProject* projec

for (auto i = 0; i < mProjectsTableData->GetNumberCols(); ++i)
mProjectsTable->SetColSize(i, mProjectsTableData->GetColWidth(i));

mPageLabel = safenew wxStaticText { this, wxID_ANY, {} };
mPrevPageButton = safenew wxButton { this, wxID_ANY, XO("Prev").Translation() };
mNextPageButton = safenew wxButton { this, wxID_ANY, XO("Next").Translation() };
Expand Down

0 comments on commit 9a20721

Please sign in to comment.