Common default datetime formats.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31439 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2005-01-17 21:29:23 +00:00
parent 9b877d1846
commit 1aaf88d220
6 changed files with 42 additions and 34 deletions

View File

@@ -233,6 +233,9 @@ static const wxDateTime::wxDateTime_t gs_cumulatedDays[2][MONTHS_IN_YEAR] =
// global data
// ----------------------------------------------------------------------------
const wxChar * wxDefaultDateTimeFormat = wxT("%c");
const wxChar * wxDefaultTimeSpanFormat = wxT("%H:%M:%S");
// in the fine tradition of ANSI C we use our equivalent of (time_t)-1 to
// indicate an invalid wxDateTime object
const wxDateTime wxDefaultDateTime;

View File

@@ -73,6 +73,8 @@
#include <wtime.h>
#endif
#include "wx/datetime.h"
// the suffix we add to the button to show that the dialog can be expanded
#define EXPAND_SUFFIX _T(" >>")
@@ -866,7 +868,7 @@ void wxLogDialog::CreateDetailsControls()
if ( !fmt )
{
// default format
fmt = _T("%c");
fmt = wxDefaultDateTimeFormat;
}
size_t count = m_messages.GetCount();
@@ -952,7 +954,7 @@ void wxLogDialog::OnSave(wxCommandEvent& WXUNUSED(event))
if ( !fmt )
{
// default format
fmt = _T("%c");
fmt = wxDefaultDateTimeFormat;
}
size_t count = m_messages.GetCount();