Skip to content
Browse files

Fixed compilation error in XBDateTime.cpp

  • Loading branch information...
1 parent 3ecbe47 commit b438ab2690a1ac363ee3a9e7102d11328cbc7932 Kyle Hill committed May 26, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 xbmc/XBDateTime.cpp
View
4 xbmc/XBDateTime.cpp
@@ -1287,15 +1287,15 @@ CStdString CDateTime::GetAsRFC1123DateTime() const
else if (weekDay > 6)
weekDay = 6;
if (weekDay != time.GetDayOfWeek())
- CLog::Log(LOGWARNING, "Invalid day of week %d in %s", time.GetDayOfWeek(), time.GetAsDBDateTime());
+ CLog::Log(LOGWARNING, "Invalid day of week %d in %s", time.GetDayOfWeek(), time.GetAsDBDateTime().c_str());
int month = time.GetMonth();
if (month < 1)
month = 1;
else if (month > 12)
month = 12;
if (month != time.GetMonth())
- CLog::Log(LOGWARNING, "Invalid month %d in %s", time.GetMonth(), time.GetAsDBDateTime());
+ CLog::Log(LOGWARNING, "Invalid month %d in %s", time.GetMonth(), time.GetAsDBDateTime().c_str());
CStdString result;
result.Format("%s, %02i %s %04i %02i:%02i:%02i GMT", DAY_NAMES[weekDay], time.GetDay(), MONTH_NAMES[month - 1], time.GetYear(), time.GetHour(), time.GetMinute(), time.GetSecond());

0 comments on commit b438ab2

Please sign in to comment.
Something went wrong with that request. Please try again.