Warning fix.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2007-02-13 15:49:09 +00:00
parent 5edb3cb52d
commit b5085b0273

View File

@@ -2261,11 +2261,11 @@ wxString wxDateTime::Format(const wxChar *format, const TimeZone& tz) const
{ {
wxCHECK_MSG( format, wxEmptyString, _T("NULL format in wxDateTime::Format") ); wxCHECK_MSG( format, wxEmptyString, _T("NULL format in wxDateTime::Format") );
time_t time = GetTicks();
// we have to use our own implementation if the date is out of range of // we have to use our own implementation if the date is out of range of
// strftime() or if we use non standard specificators // strftime() or if we use non standard specificators
#ifdef HAVE_STRFTIME #ifdef HAVE_STRFTIME
time_t time = GetTicks();
if ( (time != (time_t)-1) && !wxStrstr(format, _T("%l")) ) if ( (time != (time_t)-1) && !wxStrstr(format, _T("%l")) )
{ {
// use strftime() // use strftime()